Boost logo

Boost :

From: Hartmut Kaiser (hartmut.kaiser_at_[hidden])
Date: 2005-05-03 12:00:18


 
Pavel Vozenilek wrote:

> I'd rather like to know whether I can do a
> #define FOREACH(...) BOOST_FOREACH(...) in my code.

This can be problematic if the arguments are macros itself. This would
result in an additional expansion of these macros. But you may want to
write:

     #define FOREACH BOOST_FOREACH

which is save in this regard.

Regards Hartmut


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