Boost logo

Boost :

Subject: Re: [boost] ATTENTION: Library requirements..
From: Glen Fernandes (glen.fernandes_at_[hidden])
Date: 2016-01-10 09:27:18


On Sun, Jan 10, 2016 at 5:12 AM, Rainer Deyke wrote:
> #define SHOULD_USE_ALLOCATOR_TRAITS
> #include <boost/something/file.hpp>
>
> #ifndef SHOULD_USE_ALLOCATOR_TRAITS
> #error Where did my macro go?
> #endif

Good point; even more motivation for:
> (And it wouldn't be a bad idea for macros in the first category to also
> be prefixed with the library name).

And use BOOST_SOMETHING_SHOULD_USE_ALLOCATOR_TRAITS even if it is undefined.

Glen


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