mirror of
https://github.com/boostorg/fusion.git
synced 2025-07-14 04:46:38 +02:00
Merge branch 'master' into develop
This commit is contained in:
@ -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();
|
||||
}
|
||||
|
Reference in New Issue
Block a user