forked from boostorg/beast
decorator constructor is constrained
This commit is contained in:
@@ -19,6 +19,40 @@ namespace websocket {
|
||||
class stream_base_test : public unit_test::suite
|
||||
{
|
||||
public:
|
||||
struct T1
|
||||
{
|
||||
void operator()(request_type&);
|
||||
};
|
||||
|
||||
struct T2
|
||||
{
|
||||
void operator()(response_type&);
|
||||
};
|
||||
|
||||
struct T3
|
||||
{
|
||||
void operator()(request_type&);
|
||||
void operator()(response_type&);
|
||||
};
|
||||
|
||||
struct T4
|
||||
{
|
||||
template<class T>
|
||||
void operator()(T&);
|
||||
};
|
||||
|
||||
struct T5
|
||||
{
|
||||
void operator()();
|
||||
};
|
||||
|
||||
BOOST_STATIC_ASSERT(detail::is_decorator<T1>::value);
|
||||
BOOST_STATIC_ASSERT(detail::is_decorator<T2>::value);
|
||||
BOOST_STATIC_ASSERT(detail::is_decorator<T3>::value);
|
||||
BOOST_STATIC_ASSERT(detail::is_decorator<T4>::value);
|
||||
BOOST_STATIC_ASSERT(! detail::is_decorator<T5>::value);
|
||||
BOOST_STATIC_ASSERT(! detail::is_decorator<int>::value);
|
||||
|
||||
void
|
||||
testJavadoc()
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user