
13 Feb
2013
13 Feb
'13
4:33 p.m.
[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