diff --git a/lib/tests/traits.cpp b/lib/tests/traits.cpp index 97a7bdb..f996cc8 100644 --- a/lib/tests/traits.cpp +++ b/lib/tests/traits.cpp @@ -3,18 +3,20 @@ #include #include -using namespace std; -using namespace ReflectiveRapidJSON; - // treat some types differently to test Treat... traits struct Foo { }; struct Bar { }; +namespace ReflectiveRapidJSON { REFLECTIVE_RAPIDJSON_TREAT_AS_MAP_OR_HASH(Foo); REFLECTIVE_RAPIDJSON_TREAT_AS_MULTI_MAP_OR_HASH(Foo); REFLECTIVE_RAPIDJSON_TREAT_AS_SET(Bar); REFLECTIVE_RAPIDJSON_TREAT_AS_MULTI_SET(Foo); +} // namespace ReflectiveRapidJSON + +using namespace std; +using namespace ReflectiveRapidJSON; // test traits static_assert(IsArray>::value, "vector mapped to array");