mirror of
https://github.com/boostorg/python.git
synced 2026-01-19 04:22:16 +00:00
Merge pull request #470 from boostorg/pr/fix-iterator-detail
Replace use of boost/iterator/detail/enable_if.hpp
This commit is contained in:
@@ -9,7 +9,7 @@
|
||||
|
||||
# include <boost/python/object_core.hpp>
|
||||
# include <boost/python/call.hpp>
|
||||
# include <boost/iterator/detail/enable_if.hpp>
|
||||
# include <boost/type_traits/enable_if.hpp>
|
||||
# include <boost/mpl/bool.hpp>
|
||||
|
||||
# include <boost/iterator/detail/config_def.hpp>
|
||||
@@ -40,7 +40,7 @@ struct is_object_operators
|
||||
# if !defined(BOOST_NO_SFINAE) && !defined(BOOST_NO_IS_CONVERTIBLE)
|
||||
template <class L, class R, class T>
|
||||
struct enable_binary
|
||||
: boost::iterators::enable_if<is_object_operators<L,R>, T>
|
||||
: boost::enable_if_<is_object_operators<L,R>::value, T>
|
||||
{};
|
||||
# define BOOST_PYTHON_BINARY_RETURN(T) typename enable_binary<L,R,T>::type
|
||||
# else
|
||||
|
||||
Reference in New Issue
Block a user