From 4b3894bc0e1552cba148d84f3332ddc9faf71ac2 Mon Sep 17 00:00:00 2001 From: Enrico Date: Sat, 14 Feb 2026 10:37:45 +0100 Subject: [PATCH] Fix MSVC C++23 with json 3.12: explicit optional construction in ParseAt is required --- src/detail/json_helpers.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/detail/json_helpers.cpp b/src/detail/json_helpers.cpp index 7d9bf75..3644433 100644 --- a/src/detail/json_helpers.cpp +++ b/src/detail/json_helpers.cpp @@ -66,7 +66,7 @@ std::optional ParseAt(std::string_view endpoint, throw JsonResponseError::TypeMismatch(endpoint, std::string{key} + " string", val_json); } - return val_json; + return std::optional(val_json); } template <>