Boost logo

Boost :

Subject: Re: [boost] [system] Header-only Boost.System by default ?
From: Peter Dimov (lists_at_[hidden])
Date: 2017-10-15 22:33:00


Marc Glisse wrote:

> Otherwise:
>
> #ifndef BOOST_SYSTEM_ENABLE_DEPRECATED
> #define BOOST_SYSTEM_NO_DEPRECATED
> #endif

No, that's not right. Headers included before this one will not see the
macro, those after will. Bad things might happen. :-)

> There is a file in chrono that uses BOOST_SYSTEM_NO_DEPRECATED...

There is, although it doesn't need to. The non-deprecated path works in
either case.


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