diff options
Diffstat (limited to 'sigc++/functors/ptr_fun.h')
-rw-r--r-- | sigc++/functors/ptr_fun.h | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/sigc++/functors/ptr_fun.h b/sigc++/functors/ptr_fun.h index b188317..1c6e265 100644 --- a/sigc++/functors/ptr_fun.h +++ b/sigc++/functors/ptr_fun.h @@ -26,10 +26,7 @@ namespace sigc { /** @defgroup ptr_fun ptr_fun() - * ptr_fun() creates a functor from a pointer to a function. - * If the function pointer is to an overloaded type, you must specify - * the types using template arguments starting with the first argument. - * It is not necessary to supply the return type. + * %ptr_fun() creates a functor from a pointer to a function. * * @par Example: * @code @@ -37,6 +34,9 @@ namespace sigc * sigc::slot<void(int)> sl = sigc::ptr_fun(&foo); * @endcode * + * If the function pointer is to an overloaded type, you must specify + * the types using template arguments. + * * @par Example: * @code * void foo(int) {} // choose this one @@ -45,7 +45,7 @@ namespace sigc * sigc::slot<void(long)> sl = sigc::ptr_fun<void, int>(&foo); * @endcode * - * ptr_fun() can also be used to convert a pointer to a static member + * %ptr_fun() can also be used to convert a pointer to a static member * function to a functor, like so: * * @par Example: |