Boost logo

Boost :

Subject: Re: [boost] [bind] Boost.Bind compile error with msvc-11 and msvc-10
From: Peter Dimov (lists_at_[hidden])
Date: 2013-02-13 13:53:34


Ian Emmons wrote:
> Peter and Stephan, thanks for the information. It looks like I should
> write my own functor rather than use Boost.Bind in this case.

You could still use bind with your own functor, if you like. :-)

    struct my_push_back
    {
        template<class C, class T> void operator()( C & c, T & v ) const
        {
            c.push_back( v );
        }
    };

and then

    boost::bind( my_push_back(), boost::ref( strList ), _1 );


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