Fusion: added tests for adapt_class_named

[SVN r59341]
This commit is contained in:
Hartmut Kaiser
2010-01-29 15:04:57 +00:00
parent 6647f0c8a4
commit c24441c83d
3 changed files with 141 additions and 0 deletions

View File

@ -40,12 +40,14 @@ namespace ns
};
}
// this creates a fusion view: boost::fusion::adapted::point
BOOST_FUSION_ADAPT_STRUCT_NAMED(
ns::point, point,
(int, x)
(int, y)
)
// this creates a fusion view: ns1::s1
struct s { int m; };
BOOST_FUSION_ADAPT_STRUCT_NAMED_NS(s, (ns1), s1, (int, m))