From c7e10dc8dc482a24ff9398e7cf86121758bbd07a Mon Sep 17 00:00:00 2001 From: NissimHadar Date: Fri, 17 Apr 2020 08:47:39 -0700 Subject: [PATCH] Fixed strange compilation error for Visual Studio 2019. --- src/nlohmann/json-schema.hpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/nlohmann/json-schema.hpp b/src/nlohmann/json-schema.hpp index baa9719..e7d05c7 100644 --- a/src/nlohmann/json-schema.hpp +++ b/src/nlohmann/json-schema.hpp @@ -61,8 +61,11 @@ protected: std::tuple tie() const { - return std::tie(urn_, scheme_, authority_, path_, - identifier_ != "" ? identifier_ : pointer_); + if (identifier_ != "") { + return std::tie(urn_, scheme_, authority_, path_, identifier_); + } else { + return std::tie(urn_, scheme_, authority_, path_, pointer_); + } } public: