EDITORIAL: Cleaning the ADAPT_STRUCT which can deduce types.

This commit is contained in:
Damien Buhl (alias daminetreg)
2014-05-14 00:02:52 +02:00
parent 04cbf0d4c6
commit 6f6bfb3a27
2 changed files with 19 additions and 43 deletions

View File

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