From c61026bb81002ffff9d1e13cda9b6277f1239f15 Mon Sep 17 00:00:00 2001 From: Peter Dimov Date: Sat, 10 Sep 2016 13:42:05 +0300 Subject: [PATCH] Simplify _arg_eq, avoid partial specialization. --- include/boost/bind/arg.hpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/include/boost/bind/arg.hpp b/include/boost/bind/arg.hpp index 71e008d..cb52e66 100644 --- a/include/boost/bind/arg.hpp +++ b/include/boost/bind/arg.hpp @@ -25,11 +25,11 @@ namespace boost { -template< int I, int J > struct _arg_eq +template struct _arg_eq { }; -template< int I > struct _arg_eq< I, I> +template<> struct _arg_eq { typedef void type; }; @@ -40,7 +40,7 @@ template< int I > struct arg { } - template< class T > BOOST_CONSTEXPR arg( T const & /* t */, typename _arg_eq< I, is_placeholder::value >::type * = 0 ) + template< class T > BOOST_CONSTEXPR arg( T const & /* t */, typename _arg_eq< I == is_placeholder::value >::type * = 0 ) { } };