Merge branch 'master' into develop

This commit is contained in:
Damien Buhl (alias daminetreg)
2015-04-29 16:20:05 +02:00
4 changed files with 69 additions and 2 deletions

View File

@ -33,6 +33,14 @@ BOOST_FUSION_DEFINE_STRUCT(
BOOST_FUSION_DEFINE_STRUCT(BOOST_PP_EMPTY(), s, (int, m))
// Testing non-constexpr compatible types
BOOST_FUSION_DEFINE_STRUCT(
(ns),
employee,
(std::string, name)
(std::string, nickname)
)
int
main()
{
@ -107,5 +115,13 @@ main()
BOOST_TEST(p == make_vector(3,5));
}
{
ns::employee emp = make_list("John Doe", "jdoe");
std::cout << at_c<0>(emp) << std::endl;
std::cout << at_c<1>(emp) << std::endl;
BOOST_TEST(emp == make_vector("John Doe", "jdoe"));
}
return boost::report_errors();
}