Boost logo

Boost :

Subject: Re: [boost] Why do many examples lack #includes and namespaces?
From: sguazt (marco.guazzone_at_[hidden])
Date: 2013-12-15 04:10:58


On Sat, Dec 14, 2013 at 10:23 PM, Mostafa <mostafa_working_away_at_[hidden]>wrote:

> On Sat, 14 Dec 2013 12:04:29 -0800, Andrey Semashev <
> andrey.semashev_at_[hidden]> wrote:
>
> On Sat, Dec 14, 2013 at 10:15 PM, Krzysztof Czainski <1czajnik_at_[hidden]>
>> wrote:
>>
>>> 2013/12/13 TyRoXx <tyroxxxx_at_[hidden]>
>>>
>>> The first example for Lambda 1.55 is:
>>>>
>>>> list<int> v(10);
>>>> for_each(v.begin(), v.end(), _1 = 1);
>>>>
>>>> This is not useful at all.
>>>> The first two question that every new user would ask are:
>>>>
>>>> - which header files do I have to include?
>>>> - which namespaces are the things from? Is _1 the global that I already
>>>> know from bind or not?
>>>>
>>>
+1

-- Marco


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