From f3ef880029abaf8e18de7d39e8a0685f9ac00706 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Benjamin=20Schmith=C3=BCsen?= Date: Tue, 16 Jul 2019 17:07:45 +0200 Subject: [PATCH] call json constructor explicitly --- tiny_gltf.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tiny_gltf.h b/tiny_gltf.h index 30c2e55..60fe4e6 100644 --- a/tiny_gltf.h +++ b/tiny_gltf.h @@ -4828,7 +4828,7 @@ static void SerializeExtensionMap(ExtensionMap &extensions, json &o) { if (!(extIt->first.empty())) { // name should not be empty, but for sure // create empty object so that an extension name is still included in // json. - extMap[extIt->first] = json({}); + extMap[extIt->first] = json(std::initializer_list>>()); } } }