mirror of
https://github.com/nlohmann/json.git
synced 2026-04-07 08:38:54 +00:00
Fix string conversion under Clang
This commit is contained in:
@@ -773,6 +773,7 @@ TEST_CASE("string")
|
||||
CHECK_NOTHROW(auto v = j.get<json::array_t>());
|
||||
CHECK_THROWS_AS(auto v = j.get<json::object_t>(), std::logic_error);
|
||||
CHECK_NOTHROW(auto v = j.get<std::string>());
|
||||
CHECK_NOTHROW(auto v = static_cast<std::string>(j));
|
||||
CHECK_THROWS_AS(auto v = j.get<bool>(), std::logic_error);
|
||||
CHECK_THROWS_AS(auto v = j.get<int>(), std::logic_error);
|
||||
CHECK_THROWS_AS(auto v = j.get<double>(), std::logic_error);
|
||||
|
||||
Reference in New Issue
Block a user