Boost logo

Boost :

Subject: Re: [boost] C++17 detection
From: Barrett Adair (barrettellisadair_at_[hidden])
Date: 2017-09-10 18:43:42


On Sun, Sep 10, 2017 at 12:30 PM, Robert Ramey via Boost <
boost_at_[hidden]> 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
> } // std
>
> I've looked in the documentation for Boost.Config and can't find any
hints there.
>
> What is the best way to do this?
>
> Robert Ramey
>

I like to configure on a per-feature basis, so I use these when boost
Boost.Config falls short:
http://en.cppreference.com/w/User:D41D8CD98F/feature_testing_macros

Barrett


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