Fix toJsonDocument() for maps
This commit is contained in:
parent
d7e7bdb703
commit
d8e626d259
|
@ -11,7 +11,7 @@ set(META_APP_CATEGORIES "Utility;")
|
|||
set(META_GUI_OPTIONAL false)
|
||||
set(META_VERSION_MAJOR 0)
|
||||
set(META_VERSION_MINOR 0)
|
||||
set(META_VERSION_PATCH 9)
|
||||
set(META_VERSION_PATCH 10)
|
||||
set(META_APP_VERSION ${META_VERSION_MAJOR}.${META_VERSION_MINOR}.${META_VERSION_PATCH})
|
||||
set(META_CXX_STANDARD 17)
|
||||
set(META_ADD_DEFAULT_CPP_UNIT_TEST_APPLICATION ON)
|
||||
|
|
|
@ -791,8 +791,7 @@ template <typename Type, Traits::EnableIfAny<IsJsonSerializable<Type>, IsMapOrHa
|
|||
RAPIDJSON_NAMESPACE::Document toJsonDocument(const Type &reflectable)
|
||||
{
|
||||
RAPIDJSON_NAMESPACE::Document document(RAPIDJSON_NAMESPACE::kObjectType);
|
||||
RAPIDJSON_NAMESPACE::Document::Object object(document.GetObject());
|
||||
push(reflectable, object, document.GetAllocator());
|
||||
push(reflectable, document, document.GetAllocator());
|
||||
return document;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue