Boost logo

Boost :

Subject: Re: [boost] BOOST_FOREACH slow?
From: Mathias Gaunard (mathias.gaunard_at_[hidden])
Date: 2008-11-17 13:30:05

Eric Niebler wrote:

> During FOEACH's review, extensive performance tests showed FOREACH was
> only about 5% slower than the hand-coded equivalent on average.

Why not make FOREACH as fast as hand-coded equivalents when it is possible?
With decltype, typeof, or the MSVC hack it shouldn't be a problem. Also
some compilers have native support for foreach-like loops.

Boost list run by bdawes at, gregod at, cpdaniel at, john at