mirror of
https://github.com/boostorg/fusion.git
synced 2025-07-15 21:32:22 +02:00
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:
committed by
Kohei Takahashi
parent
d1cd721969
commit
11cc331f82
@ -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)
|
||||||
|
Reference in New Issue
Block a user