Add test with namespaced names, as it could break with the macro concatenation to check for BOOST_MPL_PP_TOKEN_EQUAL_auto equality.

This commit is contained in:
Damien Buhl (alias daminetreg)
2015-04-07 18:46:38 +02:00
committed by Kohei Takahashi
parent d1cd721969
commit 11cc331f82

View File

@ -32,13 +32,17 @@
#include <iostream> #include <iostream>
#include <string> #include <string>
namespace namespaced_type {
typedef int integer;
}
namespace ns namespace ns
{ {
struct point struct point
{ {
int x; int x;
int y; int y;
int z; namespaced_type::integer z;
}; };
#if !BOOST_WORKAROUND(__GNUC__,<4) #if !BOOST_WORKAROUND(__GNUC__,<4)
@ -119,8 +123,8 @@ namespace ns
BOOST_FUSION_ADAPT_STRUCT( BOOST_FUSION_ADAPT_STRUCT(
ns::point, ns::point,
(int, x) (int, x)
(int, y) (auto, y)
(auto, z) (namespaced_type::integer, z)
) )
# if !BOOST_WORKAROUND(__GNUC__,<4) # if !BOOST_WORKAROUND(__GNUC__,<4)