mirror of
https://github.com/boostorg/fusion.git
synced 2025-07-18 06:42:13 +02:00
Test adapt_assoc_tpl_struct checking support for type deduction.
This commit is contained in:
@ -47,12 +47,22 @@ namespace ns
|
|||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
BOOST_FUSION_ADAPT_ASSOC_TPL_STRUCT(
|
#if BOOST_PP_VARIADICS
|
||||||
|
BOOST_FUSION_ADAPT_ASSOC_TPL_STRUCT(
|
||||||
|
(X)(Y),
|
||||||
|
(ns::point)(X)(Y),
|
||||||
|
(x, ns::x_member)
|
||||||
|
(y, ns::y_member)
|
||||||
|
)
|
||||||
|
|
||||||
|
#else // BOOST_PP_VARIADICS
|
||||||
|
BOOST_FUSION_ADAPT_ASSOC_TPL_STRUCT(
|
||||||
(X)(Y),
|
(X)(Y),
|
||||||
(ns::point)(X)(Y),
|
(ns::point)(X)(Y),
|
||||||
(int, x, ns::x_member)
|
(int, x, ns::x_member)
|
||||||
(int, y, ns::y_member)
|
(BOOST_FUSION_ADAPT_AUTO, y, ns::y_member)
|
||||||
)
|
)
|
||||||
|
#endif
|
||||||
|
|
||||||
int
|
int
|
||||||
main()
|
main()
|
||||||
|
Reference in New Issue
Block a user