summaryrefslogtreecommitdiff
path: root/boost/bind
diff options
context:
space:
mode:
Diffstat (limited to 'boost/bind')
-rw-r--r--boost/bind/arg.hpp13
1 files changed, 10 insertions, 3 deletions
diff --git a/boost/bind/arg.hpp b/boost/bind/arg.hpp
index a74b8298be..cb52e6689f 100644
--- a/boost/bind/arg.hpp
+++ b/boost/bind/arg.hpp
@@ -21,20 +21,27 @@
#include <boost/config.hpp>
#include <boost/is_placeholder.hpp>
-#include <boost/static_assert.hpp>
namespace boost
{
+template<bool Eq> struct _arg_eq
+{
+};
+
+template<> struct _arg_eq<true>
+{
+ typedef void type;
+};
+
template< int I > struct arg
{
BOOST_CONSTEXPR arg()
{
}
- template< class T > BOOST_CONSTEXPR arg( T const & /* t */ )
+ template< class T > BOOST_CONSTEXPR arg( T const & /* t */, typename _arg_eq< I == is_placeholder<T>::value >::type * = 0 )
{
- BOOST_STATIC_ASSERT( I == is_placeholder<T>::value );
}
};