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 ) { } };