2 // Copyright Oliver Kowalke 2014.
3 // Distributed under the Boost Software License, Version 1.0.
4 // (See accompanying file LICENSE_1_0.txt or copy at
5 // http://www.boost.org/LICENSE_1_0.txt)
7 #ifndef BOOST_CONTEXT_DETAIL_DISABLE_OVERLOAD_H
8 #define BOOST_CONTEXT_DETAIL_DISABLE_OVERLOAD_H
10 #include <type_traits>
12 #include <boost/config.hpp>
14 #include <boost/context/detail/config.hpp>
16 #ifdef BOOST_HAS_ABI_HEADERS
17 # include BOOST_ABI_PREFIX
24 // http://ericniebler.com/2013/08/07/universal-references-and-the-copy-constructo/
25 template< typename X, typename Y >
26 using disable_overload =
27 typename std::enable_if<
30 typename std::decay< Y >::type
36 #ifdef BOOST_HAS_ABI_HEADERS
37 #include BOOST_ABI_SUFFIX
40 #endif // BOOST_CONTEXT_DETAIL_DISABLE_OVERLOAD_H