From: boost (boost_at_[hidden])
Date: 2002-01-25 04:55:19
On Thursday 24 January 2002 17:06, vesa_karvonen wrote:
> I just committed a fun preprocessor example into the CVS.
> The DELAY() macro implemented in the example source takes exponential
> time to expand into nothing. For instance, on the 800MHz PIII I use
> at the office, it takes roughly 4 seconds to compile delay.cpp like
> this on the MSVC++ compiler:
> cl -Zs -nologo -I../../.. -DDELAY_MAX=15 delay.cpp
> The maximum argument to delay is 50. This means that if I use the
> cl -Zs -nologo -I../../.. -DDELAY_MAX=50 delay.cpp
> It takes roughly 4000 years to complete.
Thanks a lot, this will certainly help to extend coffee breaks.
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk