1 // (C) Copyright Oliver Kowalke 2016.
2 // Use, modification and distribution are subject to the
3 // Boost Software License, Version 1.0. (See accompanying file
4 // LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
6 // See http://www.boost.org/libs/config for most recent version.
8 // MACRO: BOOST_NO_CXX14_STD_EXCHANGE
10 // DESCRIPTION: The compiler supports the std::exchange() function.
14 namespace boost_no_cxx14_std_exchange {
17 int * i = new int( 1);
18 int * j = std::exchange( i, nullptr);