Boost logo

Boost Users :

Subject: Re: [Boost-users] Why use 'functional composition' with boost::bind
From: Mathias Gaunard (mathias.gaunard_at_[hidden])
Date: 2010-08-04 12:58:07


On 04/08/10 14:55, Thomas Heller wrote:
> Gaetano Mendola wrote:
>
>> On 08/04/2010 01:49 PM, Jeff Flinn wrote:
>>>
>>>
> Huh, with which lib? Is _1 in the global namespace, or is this assuming
>>>
> a using namespace?
>>
>> #include<boost/lambda/lambda.hpp>
>>
>>
> boost::lambda::_1
>
> boost.lambda placeholders don't work with
> boost.bind.
> "::_1" should solve this problem (or don't pull in everything
> form the boost::lambda namespace).

In the code of the original poster, he used boost::lambda::bind, even if
he referred to it as boost::bind.


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net