Fix detection of member_type parameter emptiness for BOOST_FUSION_ADAPT_STRUCT.

As BOOST_PP_IS_EMPTY is not a general purpose emptiness checker, we limit
the ways it can be used.
This commit is contained in:
Damien Buhl (alias daminetreg)
2014-06-10 23:45:43 +02:00
parent 7ef202b794
commit 557b3d2dc6
2 changed files with 10 additions and 21 deletions

View File

@ -62,8 +62,8 @@ namespace ns
BOOST_FUSION_ADAPT_STRUCT(
ns::point,
(int, x)
(int, y),
z
(BOOST_FUSION_ADAPT_AUTO, y)
(, z)
)
#if !BOOST_WORKAROUND(__GNUC__,<4)