blob: 1b6d906fe259f0570c1b7c30d198c1c9b85a4c59 [file] [log] [blame]
// (C) Copyright Tobias Schwinger
//
// Use modification and distribution are subject to the boost Software License,
// Version 1.0. (See http://www.boost.org/LICENSE_1_0.txt).
//------------------------------------------------------------------------------
#include <boost/mpl/assert.hpp>
#include <boost/mpl/vector.hpp>
#include <boost/type_traits/is_same.hpp>
#include <boost/function_types/member_function_pointer.hpp>
namespace ft = boost::function_types;
namespace mpl = boost::mpl;
using boost::is_same;
class C;
typedef int (C::* expected)();
BOOST_MPL_ASSERT((
is_same< ft::member_function_pointer< mpl::vector<int,C * const> >::type
, expected >
));
BOOST_MPL_ASSERT((
is_same< ft::member_function_pointer< mpl::vector<int,C * volatile> >::type
, expected >
));
BOOST_MPL_ASSERT((
is_same< ft::member_function_pointer< mpl::vector<int,C * const volatile> >::type
, expected >
));