
13 Sep
2005
13 Sep
'05
2:31 a.m.
Hi. When using pointers to functions with bind, the particular function doesn't play a part in the return value's type of bind. That is void func1(); void func2(); typeid(boost::bind(&func1)) == typeid(boost::bind(&func1)) // this is true I need the types to be different to store bind objects with the serialization library. The C++ Templates book proposes an adaptor that takes the pointer to function as a template parameter. However, this adaptor is particular to a given signature, and I don't know how to rewrite it more generally. Is this possible? Can I more easily make boost::bind do what I want? Bruno