From a2dc06e8e2f502853956c72aeea1ed752eb42111 Mon Sep 17 00:00:00 2001 From: NissimHadar Date: Fri, 17 Apr 2020 08:51:32 -0700 Subject: [PATCH] Added explanation for change. --- src/nlohmann/json-schema.hpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/nlohmann/json-schema.hpp b/src/nlohmann/json-schema.hpp index e7d05c7..d6d20b4 100644 --- a/src/nlohmann/json-schema.hpp +++ b/src/nlohmann/json-schema.hpp @@ -61,6 +61,13 @@ protected: std::tuple tie() const { + // The original + // return std::tie(urn_, scheme_, authority_, path_, + // identifier_ != "" ? identifier_ : pointer_); + // + // does not compile under Visual Studio 2019 + // The error occurs when including this file, NOT when building this project + // if (identifier_ != "") { return std::tie(urn_, scheme_, authority_, path_, identifier_); } else {