X-Git-Url: http://g0dil.de/git?a=blobdiff_plain;f=Utils%2Fmembind.hh;h=c2baf8601d2ab02570d972d2e9414cec592ee0bd;hb=7f60122e00a4680d39b199a738160eb8a5dea381;hp=742930711f48c7f421f0cf350b8e6589e566a321;hpb=412024ed31a4ab4eaea7a4165a434f8efebee325;p=senf.git
diff --git a/Utils/membind.hh b/Utils/membind.hh
index 7429307..c2baf86 100644
--- a/Utils/membind.hh
+++ b/Utils/membind.hh
@@ -25,8 +25,8 @@
/** \defgroup membind Bound Member Functions
- The membind() family of function templates simplifies the creation
- of simple bound member function pointers:
+ The membind() family of function templates simplifies the creation of simple bound member
+ function pointers:
\code
struct Foo {
@@ -38,12 +38,13 @@
int rv = f(1); // Calls foo->test(1)
\endcode
- \idea Make the \a ob argument type an additional P template
- parameter (using call_traits for the exact arg type? Probably
- we'll get deduction problems then) . The only operation this
- object must support is ob->*fn. This would allow the use of
- smart pointers. We should keep the T & version to still support
- ob.*fn use.
+ senf::membind() takes either a pointer or an object as second argument. When passing an object,
+ that object will be copied into the bound member function returned.
+
+ \idea Make the \a ob argument type an additional P template parameter (using call_traits for the
+ exact arg type? Probably we'll get deduction problems then) . The only operation this object
+ must support is ob->*fn. This would allow the use of smart pointers. We should keep the T &
+ version to still support ob.*fn use.
*/
#ifndef HH_SENF_Utils_membind_
@@ -52,6 +53,7 @@
// Custom includes
#include
#include
+#include "../config.hh"
///////////////////////////////hh.p////////////////////////////////////////