2
0
mirror of https://github.com/boostorg/tti.git synced 2026-01-26 19:12:11 +00:00
Files
tti/test/test_mf_has_static_fun.cpp
2011-08-27 17:09:57 +00:00

103 lines
2.9 KiB
C++

// (C) Copyright Edward Diener 2011
// Use, modification and distribution are subject to the Boost Software License,
// Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at
// http://www.boost.org/LICENSE_1_0.txt).
#include "test_mf_has_static_fun.hpp"
#include <boost/detail/lightweight_test.hpp>
#include <boost/tti/mf/mf_has_static_member_function.hpp>
int main()
{
using namespace boost::mpl::placeholders;
BOOST_TEST((boost::tti::mf_has_static_member_function
<
HaveTheSIntFunction<_,_,_>,
boost::mpl::identity<AType>,
int,
boost::mpl::vector
<
long,
double
>
>
::value
));
BOOST_TEST((boost::tti::mf_has_static_member_function
<
TheTIntFunction<_,_,_>,
boost::mpl::identity<AnotherType>,
boost::mpl::identity<AType>,
boost::mpl::vector
<
long,
double
>
>
::value
));
BOOST_TEST((boost::tti::mf_has_static_member_function
<
BOOST_TTI_HAS_STATIC_MEMBER_FUNCTION_GEN(TSFunction)<_,_,_>,
boost::mpl::identity<AnotherType>,
BOOST_TTI_MEMBER_TYPE_GEN(AStructType)<AType>,
boost::mpl::vector
<
NameIntType<AType>,
double
>
>
::value
));
BOOST_TEST((boost::tti::mf_has_static_member_function
<
boost::mpl::quote4<HaveTheSIntFunction>,
boost::mpl::identity<AType>,
int,
boost::mpl::vector
<
long,
double
>
>
::value
));
BOOST_TEST((boost::tti::mf_has_static_member_function
<
boost::mpl::quote4<TheTIntFunction>,
boost::mpl::identity<AnotherType>,
boost::mpl::identity<AType>,
boost::mpl::vector
<
long,
double
>
>
::value
));
BOOST_TEST((boost::tti::mf_has_static_member_function
<
boost::mpl::quote4<BOOST_TTI_HAS_STATIC_MEMBER_FUNCTION_GEN(TSFunction)>,
boost::mpl::identity<AnotherType>,
BOOST_TTI_MEMBER_TYPE_GEN(AStructType)<AType>,
boost::mpl::vector
<
NameIntType<AType>,
double
>
>
::value
));
return boost::report_errors();
}