Boost logo

Boost :

Subject: Re: [boost] [Config] A proposal to Boost.Config.
From: John Maddock (boost.regex_at_[hidden])
Date: 2011-04-26 08:03:20

> Boost.Config provides BOOST_PLATFORM macro (it will expand to strings).
> However, it cannot use to switch including header like followings.
> #include <boost/config.hpp>
> #include "somedir/" BOOST_PLATFORM "/someheader.hpp"
> So, I propose a new macro BOOST_PLATFORM_LABEL (change to more suitable
> name).
> That provide not stringized platform name like this.
> #define BOOST_PLATFORM_LABEL linux
> By using such macro, will be able to switch including header.
> #include <boost/config.hpp>
> #include <boost/preprocessor/stringize.hpp>
> #include

I don't see how that could ever be portable - there's no guarantee that
every platform has such a header?

BTW we normally only add Boost.Config macros for Boost's internal use, is
this such a case? If so some more information on the problem you want to
solve might help...

Cheers, John.

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