|
Boost Users : |
From: Bruno Martínez (br1_at_[hidden])
Date: 2005-09-12 21:31:52
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
Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net