2
0
mirror of https://github.com/boostorg/tr1.git synced 2026-01-19 04:42:14 +00:00

boost::bind placeholders can't always be passed to T const&

[SVN r34478]
This commit is contained in:
Peter Dimov
2006-07-07 19:25:00 +00:00
parent 0ae92e853b
commit 18442cfe3a

View File

@@ -13,12 +13,12 @@
#include "verify_return.hpp"
template <class T>
void check_placeholder(const T&)
void check_placeholder( T )
{
T t;
T t2(t);
(void)t2;
BOOST_STATIC_ASSERT(::std::tr1::is_placeholder<T>::value);
BOOST_STATIC_ASSERT( ::std::tr1::is_placeholder<T>::value > 0 );
}
template <class Binder, class R>