|
Boost : |
From: Eric Niebler (eric_at_[hidden])
Date: 2008-06-13 18:59:14
albert meyburgh wrote:
> Hi,
>
> I'm trying to use the lambda constructor provided in boost and it's not
> compiling.
>
> class someclass
> {
> someclass(sometype, int x)
> }
>
> std::vector v<sometype>
> std::vector v2<someclass>
> std::transform( v.begin(),
> v.end(),
> std::back_inserter( v2 ),
> boost::bind( boost::lambda::constructor<someclass>(),
Try boost::lambda::bind() instead of boost::bind().
-- Eric Niebler BoostPro Computing http://www.boostpro.com
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk