Boost logo

Boost :

From: Fredrik Blomqvist (fredrik_blomqvist_at_[hidden])
Date: 2003-11-11 18:03:13


Martin Wille wrote:
> Fredrik Blomqvist wrote:
>
[snip]
>> or even shorter:
>> std::vector<path> v(directory_iterator(p), directory_iterator());
>
> That would declare v as a function that returns a path.
> You'd have to add () around one of the arguments to make
> v a vector that is constructed by the two-iterator constructor.
>
Doh!
Mental note: "don't write code in outlook.." ;-)

//Fredrik


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