Boost logo

Boost :

From: Arkadiy Vertleyb (vertleyb_at_[hidden])
Date: 2004-04-24 11:18:33


Hi Paul,

"Paul Mensonides" <pmenso57_at_[hidden]> wrote

> And then use it like this:
>
> #include "counter.hpp"
>
> #include NEXT()
> COUNTER // 1
>
> #include NEXT()
> COUNTER // 2
>
> #include NEXT()
> COUNTER // 3
>
> // etc.

This solution almost works for me except I hoped to completely hide the
unique number genereation mechanism behind a macro, so that my users are not
aware of this, like:

REGISTER(...) // 1 is used
REGISTER(...) // 2 is used
etc.

As I understand I can't use #include inside a macro, so looks like I am out
of luck here...

Regards,
Arkadiy


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