forked from boostorg/fusion
FEATURE: Type deduction for BOOST_FUSION_ADAPT_STRUCT_C_BASE, with preliminary support for providing or deducing the type.
This commit is contained in:
1 parent
3ca94f5762
commit
7e1c6cdf47
3 files changed
+64
-9
No files matched your search
@@ -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()
|
||||
|
||||
Reference in new issue
Block a user