// Copyright David Abrahams 2004. Distributed under the Boost // Software License, Version 1.0. (See accompanying // file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) #ifndef ENABLE_IF_DWA2004722_HPP # define ENABLE_IF_DWA2004722_HPP # include # include # if BOOST_WORKAROUND(BOOST_MSVC, <= 1300) # include namespace boost { namespace python { namespace detail { template struct always_void { typedef void type; }; template struct enable_if_arg { typedef typename mpl::if_::type type; }; template struct disable_if_arg { typedef typename mpl::if_::type type; }; template ::type> struct enable_if_ret { typedef typename mpl::if_::type type; }; template ::type> struct disable_if_ret { typedef typename mpl::if_::type type; }; }}} // namespace boost::python::detail # elif !defined(BOOST_NO_SFINAE) # include namespace boost { namespace python { namespace detail { template struct enable_if_arg : enable_if {}; template struct disable_if_arg : disable_if {}; template struct enable_if_ret : enable_if {}; template struct disable_if_ret : disable_if {}; }}} // namespace boost::python::detail # endif #endif // ENABLE_IF_DWA2004722_HPP