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: