Boost logo

Boost :

Subject: Re: [boost] [bind] Boost.Bind compile error with msvc-11 and msvc-10
From: Ian Emmons (iemmons_at_[hidden])
Date: 2013-02-13 13:19:42


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_at_[hidden]> 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


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk