From 11cc331f8224a26604d5869c7c25d026fb7665ec Mon Sep 17 00:00:00 2001 From: "Damien Buhl (alias daminetreg)" Date: Tue, 7 Apr 2015 18:46:38 +0200 Subject: [PATCH] Add test with namespaced names, as it could break with the macro concatenation to check for BOOST_MPL_PP_TOKEN_EQUAL_auto equality. --- test/sequence/adapt_struct.cpp | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/test/sequence/adapt_struct.cpp b/test/sequence/adapt_struct.cpp index 5e2e7d3f..f806d96c 100644 --- a/test/sequence/adapt_struct.cpp +++ b/test/sequence/adapt_struct.cpp @@ -32,13 +32,17 @@ #include #include +namespace namespaced_type { + typedef int integer; +} + namespace ns { struct point { int x; int y; - int z; + namespaced_type::integer z; }; #if !BOOST_WORKAROUND(__GNUC__,<4) @@ -119,8 +123,8 @@ namespace ns BOOST_FUSION_ADAPT_STRUCT( ns::point, (int, x) - (int, y) - (auto, z) + (auto, y) + (namespaced_type::integer, z) ) # if !BOOST_WORKAROUND(__GNUC__,<4)