File indexing completed on 2025-01-18 09:30:24
0001
0002
0003
0004
0005
0006
0007 #ifndef BOOST_CONTEXT_DETAIL_DISABLE_OVERLOAD_H
0008 #define BOOST_CONTEXT_DETAIL_DISABLE_OVERLOAD_H
0009
0010 #include <type_traits>
0011
0012 #include <boost/config.hpp>
0013
0014 #include <boost/context/detail/config.hpp>
0015
0016 #ifdef BOOST_HAS_ABI_HEADERS
0017 # include BOOST_ABI_PREFIX
0018 #endif
0019
0020 namespace boost {
0021 namespace context {
0022 namespace detail {
0023
0024
0025 template< typename X, typename Y >
0026 using disable_overload =
0027 typename std::enable_if<
0028 ! std::is_base_of<
0029 X,
0030 typename std::decay< Y >::type
0031 >::value
0032 >::type;
0033
0034 }}}
0035
0036 #ifdef BOOST_HAS_ABI_HEADERS
0037 #include BOOST_ABI_SUFFIX
0038 #endif
0039
0040 #endif