From 75ba1a50c958d8db0b49ceccec922f5dfc64fe2d Mon Sep 17 00:00:00 2001 From: Andrey Semashev Date: Thu, 13 Jan 2022 17:28:53 +0300 Subject: [PATCH] Switched enable_if from MPL to TypeTraits. --- include/boost/iterator/detail/enable_if.hpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/include/boost/iterator/detail/enable_if.hpp b/include/boost/iterator/detail/enable_if.hpp index 071f5fe..dcc9adb 100644 --- a/include/boost/iterator/detail/enable_if.hpp +++ b/include/boost/iterator/detail/enable_if.hpp @@ -7,10 +7,11 @@ #ifndef BOOST_ENABLE_IF_23022003THW_HPP #define BOOST_ENABLE_IF_23022003THW_HPP -#include -#include - +#include #include +#if defined(BOOST_NO_SFINAE) || defined(BOOST_NO_IS_CONVERTIBLE) +#include +#endif // // Boost iterators uses its own enable_if cause we need @@ -48,7 +49,6 @@ namespace boost struct base { #ifdef BOOST_NO_SFINAE - typedef T type; // This way to do it would give a nice error message containing @@ -69,7 +69,7 @@ namespace boost # if !defined(BOOST_NO_SFINAE) && !defined(BOOST_NO_IS_CONVERTIBLE) : enabled<(Cond::value)>::template base # else - : mpl::identity + : boost::type_identity # endif { };