mirror of
https://github.com/boostorg/fusion.git
synced 2025-07-14 04:46:38 +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 <string>
|
||||
|
||||
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)
|
||||
|
Reference in New Issue
Block a user