Boost logo

Boost :

Subject: Re: [boost] C++17 detection
From: Peter Dimov (lists_at_[hidden])
Date: 2017-09-14 14:56:16


Robert Ramey wrote:

> BOOST_NO_CXX17_STD_IS_DETECTED
>
> According to http://en.cppreference.com/w/cpp/experimental/is_detected
>
> it's currently in <experimental/type_traits> as part of library
> fundamentals v2. I had mistakenly thought it was slated for C++17. So
> maybe it's not appropriate to include in Boost.Config yet.

The usual practice for such additions is to add boost::is_detected into
Boost.TypeTraits, obviating the need for a Config check and each library
providing its own fallback.

Or, you can use mp_valid from Mp11 instead, although it's not a drop-in
replacement.


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