Boost logo

Boost :

Subject: Re: [boost] [C++0x] More config macros needed
From: Stewart, Robert (Robert.Stewart_at_[hidden])
Date: 2009-05-12 17:11:24

Beman Dawes wrote:
On Monday, May 11, 2009 10:15 PM
> GCC 4.3 and even more so 4.4 have implemented significant portions of
> the C++0x core language, and provide lots of C++0x standard library
> components too.
> Microsoft 2010 beta 1 will ship "real soon", and it too will have some
> major C++0x core language features, and also some C++0x standard
> library components.
> Thus we need more config macros, particularly those aimed at the
> standard library. A possible approach:
> BOOST_NO_CONCEPTS // needed to tell if headers have been
> conceptized
> BOOST_NO_*_HDR // for each new C++0x header; * is
> name of header
> For example, BOOST_NO_CHRONO_HDR is defined unless header
> <chrono> is present.

I noticed the need for such macros, too, at BoostCon. I was thinking we need one for each feature.


The only reason I can think of to provide one for each header is so that Boost headers can include standard headers rather than compatibility code. Is that what you had in mind? If so, then the header macros should only be undefined when the corresponding header is complete.

Rob Stewart robert.stewart_at_[hidden]
Software Engineer, Core Software using std::disclaimer;
Susquehanna International Group, LLP

IMPORTANT: The information contained in this email and/or its attachments is confidential. If you are not the intended recipient, please notify the sender immediately by reply and immediately delete this message and all its attachments. Any review, use, reproduction, disclosure or dissemination of this message or any attachment by an unintended recipient is strictly prohibited. Neither this message nor any attachment is intended as or should be construed as an offer, solicitation or recommendation to buy or sell any security or other financial instrument. Neither the sender, his or her employer nor any of their respective affiliates makes any warranties as to the completeness or accuracy of any of the information contained herein or that this message or any of its attachments is free of viruses.

Boost list run by bdawes at, gregod at, cpdaniel at, john at