From 73d57d9540cb302f54cf42eeea272dbd694de572 Mon Sep 17 00:00:00 2001 From: Michael Jabbour Date: Thu, 3 Dec 2020 12:49:52 +0200 Subject: [PATCH] Fix explicit tuple constructor error on gcc-5 (#138) --- src/nlohmann/json-schema.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/nlohmann/json-schema.hpp b/src/nlohmann/json-schema.hpp index 7979951..e99c400 100644 --- a/src/nlohmann/json-schema.hpp +++ b/src/nlohmann/json-schema.hpp @@ -61,7 +61,7 @@ protected: std::tuple as_tuple() const { - return {urn_, scheme_, authority_, path_, identifier_ != "" ? identifier_ : pointer_}; + return std::make_tuple(urn_, scheme_, authority_, path_, identifier_ != "" ? identifier_ : pointer_); } public: