1
0
forked from boostorg/bind

Simplify _arg_eq, avoid partial specialization.

This commit is contained in:
Peter Dimov
2016-09-10 13:42:05 +03:00
parent 473155eebe
commit c61026bb81

View File

@@ -25,11 +25,11 @@
namespace boost namespace boost
{ {
template< int I, int J > struct _arg_eq template<bool Eq> struct _arg_eq
{ {
}; };
template< int I > struct _arg_eq< I, I> template<> struct _arg_eq<true>
{ {
typedef void type; 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<T>::value >::type * = 0 ) template< class T > BOOST_CONSTEXPR arg( T const & /* t */, typename _arg_eq< I == is_placeholder<T>::value >::type * = 0 )
{ {
} }
}; };