latest oatch from Nathan Ridge

[SVN r79305]
This commit is contained in:
Joel de Guzman
2012-07-05 23:39:50 +00:00
parent 85583b5ea9
commit a3b0cad1e7
4 changed files with 67 additions and 0 deletions

View File

@ -29,6 +29,8 @@ struct cls
namespace ns
{
BOOST_FUSION_DEFINE_STRUCT_INLINE(s, (int, m))
BOOST_FUSION_DEFINE_STRUCT_INLINE(empty_struct, )
}
int
@ -40,6 +42,11 @@ main()
std::cout << tuple_close(']');
std::cout << tuple_delimiter(", ");
{
BOOST_STATIC_ASSERT(boost::fusion::result_of::size<ns::empty_struct>::value == 0);
BOOST_STATIC_ASSERT(boost::fusion::result_of::empty<ns::empty_struct>::value);
}
{
BOOST_MPL_ASSERT_NOT((traits::is_view<cls::point>));
cls::point p(123, 456);