FEATURE: Type deduction for BOOST_FUSION_ADAPT_STRUCT_C_BASE, with preliminary support for providing or deducing the type.

This commit is contained in:
Damien Buhl (alias daminetreg)
2014-05-09 13:25:38 +02:00
parent 3ca94f5762
commit 7e1c6cdf47
3 changed files with 64 additions and 9 deletions

View File

@ -56,22 +56,22 @@ namespace ns
#endif
}
BOOST_FUSION_ADAPT_STRUCT(
BOOST_FUSION_ADAPT_STRUCT_NEWAPI(
ns::point,
(int, x)
(int, y)
(x)
(y)
)
#if !BOOST_WORKAROUND(__GNUC__,<4)
BOOST_FUSION_ADAPT_STRUCT(
BOOST_FUSION_ADAPT_STRUCT_NEWAPI(
ns::point_with_private_attributes,
(int, x)
(int, y)
(x)
(y)
)
#endif
struct s { int m; };
BOOST_FUSION_ADAPT_STRUCT(s, (int, m))
BOOST_FUSION_ADAPT_STRUCT_NEWAPI(s, (m))
int
main()