Boost logo

Boost :

From: Lassi A.Tuura (lassi.tuura_at_[hidden])
Date: 2004-09-29 12:06:59


> Hmmm... I do not think VC7.1 supports NRVO (it does support unnamed
> RVO though). Do you consider it a 'reasonable compiler'? Or should we
> say that it does not matter if that compiler generated slower code?

"Slower" is relative to the speed it takes to glob the files in the
first place.

No comment on whether you should use iterators or containers though.
Depending on how you implement iterators and how client works, the
semantics might get really ugly. I can imagine that at least the
semantics of underlying readdir() calls and concurrent changes to the
directory get really ugly if you expect to be able to copy iterators
and/or change the directory while the iterator is scanning it.

Obviously there are still race conditions even if you use containers.

Lassi

--
Another month ends.  All targets met.  All systems working.
All customers satisfied.  All staff eager and enthusiastic.
All pigs fed and ready for take off.

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