Skip to content

Commit d1ad114

Browse files
committed
Use enable_if from TypeTraits
1 parent b1fa00f commit d1ad114

2 files changed

Lines changed: 8 additions & 8 deletions

File tree

include/boost/function/function_base.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
#include <boost/config/workaround.hpp>
3131
#include <boost/type_traits/alignment_of.hpp>
3232
#ifndef BOOST_NO_SFINAE
33-
# include "boost/utility/enable_if.hpp"
33+
#include <boost/type_traits/enable_if.hpp>
3434
#else
3535
# include "boost/mpl/bool.hpp"
3636
#endif
@@ -50,7 +50,7 @@
5050
#endif // __ICL etc
5151

5252
# define BOOST_FUNCTION_ENABLE_IF_NOT_INTEGRAL(Functor,Type) \
53-
typename ::boost::enable_if_c< \
53+
typename ::boost::enable_if_< \
5454
!(::boost::is_integral<Functor>::value), \
5555
Type>::type
5656

include/boost/function/function_template.hpp

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -715,7 +715,7 @@ namespace boost {
715715
template<typename Functor>
716716
BOOST_FUNCTION_FUNCTION(Functor BOOST_FUNCTION_TARGET_FIX(const &) f
717717
#ifndef BOOST_NO_SFINAE
718-
,typename boost::enable_if_c<
718+
,typename boost::enable_if_<
719719
!(is_integral<Functor>::value),
720720
int>::type = 0
721721
#endif // BOOST_NO_SFINAE
@@ -727,7 +727,7 @@ namespace boost {
727727
template<typename Functor,typename Allocator>
728728
BOOST_FUNCTION_FUNCTION(Functor BOOST_FUNCTION_TARGET_FIX(const &) f, Allocator a
729729
#ifndef BOOST_NO_SFINAE
730-
,typename boost::enable_if_c<
730+
,typename boost::enable_if_<
731731
!(is_integral<Functor>::value),
732732
int>::type = 0
733733
#endif // BOOST_NO_SFINAE
@@ -776,7 +776,7 @@ namespace boost {
776776
// construct.
777777
template<typename Functor>
778778
#ifndef BOOST_NO_SFINAE
779-
typename boost::enable_if_c<
779+
typename boost::enable_if_<
780780
!(is_integral<Functor>::value),
781781
BOOST_FUNCTION_FUNCTION&>::type
782782
#else
@@ -1066,7 +1066,7 @@ class function<BOOST_FUNCTION_PARTIAL_SPEC>
10661066
template<typename Functor>
10671067
function(Functor f
10681068
#ifndef BOOST_NO_SFINAE
1069-
,typename boost::enable_if_c<
1069+
,typename boost::enable_if_<
10701070
!(is_integral<Functor>::value),
10711071
int>::type = 0
10721072
#endif
@@ -1077,7 +1077,7 @@ class function<BOOST_FUNCTION_PARTIAL_SPEC>
10771077
template<typename Functor,typename Allocator>
10781078
function(Functor f, Allocator a
10791079
#ifndef BOOST_NO_SFINAE
1080-
,typename boost::enable_if_c<
1080+
,typename boost::enable_if_<
10811081
!(is_integral<Functor>::value),
10821082
int>::type = 0
10831083
#endif
@@ -1116,7 +1116,7 @@ class function<BOOST_FUNCTION_PARTIAL_SPEC>
11161116

11171117
template<typename Functor>
11181118
#ifndef BOOST_NO_SFINAE
1119-
typename boost::enable_if_c<
1119+
typename boost::enable_if_<
11201120
!(is_integral<Functor>::value),
11211121
self_type&>::type
11221122
#else

0 commit comments

Comments
 (0)