Boost logo

Boost :

Subject: Re: [boost] nested BOOST_FOREACH and -Wshadow
From: Kim Barrett (kab.conundrums_at_[hidden])
Date: 2009-02-07 19:50:45


At 5:33 PM +0300 2/7/09, Andrey Semashev wrote:
>It's __COUNTER__, unfolds into an integer. It gets incremented every
>time it gets unfolded.

FWIW, this feature was also recently added to gcc:
http://gcc.gnu.org/gcc-4.3/changes.html
A new predefined macro __COUNTER__ has been added. It expands to
sequential integral values starting from 0. In conjunction with the
## operator, this provides a convenient means to generate unique
identifiers.


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