
13 Feb
2013
13 Feb
'13
6:19 p.m.
Peter and Stephan, thanks for the information. It looks like I should write my own functor rather than use Boost.Bind in this case. On Feb 13, 2013, at 11:33 AM, Stephan T. Lavavej <stl@exchange.microsoft.com> wrote:
[Peter Dimov]
Fixing this is not particularly elegant. To select an overload, you need to do something like void (X::StringList::*pmf)(string const&) = &X::StringList::push_back;
Technically, taking the address of most Standard Library member functions can't be done portably. N3485 17.6.5.5 [member.functions] permits implementations to add overloads (so &foo::bar is ambiguous without additional type information) and to add default arguments (affecting the signature, so you can't provide additional type information).
STL