Boost logo

Boost :

Subject: Re: [boost] C++17 detection
From: Robert Ramey (ramey_at_[hidden])
Date: 2017-09-11 14:58:27


On 9/10/17 12:07 PM, Glen Fernandes via Boost wrote:
> On Sun, Sep 10, 2017 at 1:30 PM, Robert Ramey via Boost wrote:
>> How do I get ready for C++17?
>>
>> I have a piece of code which requires C++14. I want to use something from
>> C++17 but I also want my code to work now. So I have
>>
>> #if C++14 being used
>> namespace std {
>> // implement C++ function
>> }
>
> Don't define those things inside namespace std. Instead:

Hmmmm - I've done this from time to time. Why would this be a bad thing?

> #if /* C++17 thing available */

Actually, the question I meant to ask is what should go into the

/* C++17 thing available */

I was thinking of something from Boost.Config - which I use a lot.

Robert Ramey

>
> Glen
>
> _______________________________________________
> Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost
>


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