Boost logo

Boost :

From: Larry Evans (cppljevans_at_[hidden])
Date: 2005-12-09 21:32:38


On 12/09/2005 06:46 PM, Frank Laub wrote:
>>#ifndef BOOST_PREPROCESSOR_ENUM_HPP
>>#define BOOST_PREPROCESSOR_ENUM_HPP
>>
>>, and, in the same vein, give the macro names BOOST_PP prefixes?
>
> I've elected to keep it out of the preprocessor lib for now given Paul's
> comments. But I have gone ahead and prefixed the macro names with

I see Paul's point.

> BOOST_ENUM_, is this sufficient? Also the guard is named BOOST_ENUM_HPP,
> hope that works.

Looks good to me.

> Thanks for taking the time to check it out :)

Most welcome.

> Oh, is there a way to undef the macros after I'm done using them? I've seen
> this in other boost libs but when I try I get a bunch of errors. How do
> local macros work?

All I do is just mimic what other booster's have done: Have a
*prefix file which defines them, and a *suffix file which undefines
them. I'd just look around for something like that.


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