From fcf0047c350e3d593a3f939ddd97a215e3fa0320 Mon Sep 17 00:00:00 2001 From: Michael Jabbour Date: Thu, 3 Dec 2020 10:18:11 +0200 Subject: [PATCH] Fix explicit tuple constructor error on gcc-5 --- 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: