2
0
mirror of https://github.com/boostorg/tti.git synced 2026-01-27 07:22:12 +00:00
Files
tti/test/TestMFHasStaticDataCompile.cpp
Edward Diener 793458e3ee Updated functionality and tests
[SVN r68669]
2011-02-06 16:29:00 +00:00

31 lines
683 B
C++

#include "TestMFHasStaticData.hpp"
#include <boost/mpl/assert.hpp>
int main()
{
using namespace boost::mpl::placeholders;
// You can always instantiate without compiler errors
tti::mf_has_static_data
<
tti::has_static_member_SomeStaticData<_,_>,
boost::mpl::identity<AnotherType>,
boost::mpl::identity<double>
> aVar;
// Compile time asserts
BOOST_MPL_ASSERT((tti::mf_has_static_data
<
tti::has_static_member_DSMember<_,_>,
boost::mpl::identity<AType>,
boost::mpl::identity<short>
>
));
return 0;
}