mirror of
https://github.com/nlohmann/json.git
synced 2026-09-30 14:24:59 +01:00
With 3.10.5, get<std::variant<json>>() was well-formed through the string from_json overload, so the implicit conversion operator was a candidate when converting json to std::variant<json>, and MSVC picked it over the variant's converting constructor. The tightened constraints from #3427 and #3604 (3.11.0) removed that path; this test guards against regressions. Signed-off-by: Niels Lohmann <mail@nlohmann.me>