2
0
mirror of https://github.com/boostorg/tti.git synced 2026-01-26 07:02:14 +00:00
Files
tti/test/test_has_static_member.cpp
2011-08-24 03:46:01 +00:00

22 lines
785 B
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_has_static_member.hpp"
#include <boost/detail/lightweight_test.hpp>
int main()
{
BOOST_TEST((HaveTheSIntFunction<AType,int (long,double)>::value));
BOOST_TEST((!TheTIntFunction<AType,AType (long,double)>::value));
BOOST_TEST((TheTIntFunction<AnotherType,AType (long,double)>::value));
BOOST_TEST((BOOST_TTI_HAS_STATIC_MEMBER_FUNCTION_WITH_SIG_GEN(TSFunction)<AnotherType,AType::AStructType (AType::AnIntType,double)>::value));
BOOST_TEST((!Pickedname<AnotherType,void ()>::value));
return boost::report_errors();
}