1
0
mirror of https://github.com/nlohmann/json synced 2024-11-23 12:30:06 +00:00

🏁 trying to fix C2440 error

Error in AppVeyor:

unit-conversions.cpp(441): error C2440: 'initializing': cannot convert from 'nlohmann::json' to 'std::nullptr_t'

(https://ci.appveyor.com/project/nlohmann/json/build/2838/job/wo7im01sq6tvhe9m)
This commit is contained in:
Niels Lohmann 2018-07-21 10:59:00 +02:00
parent 347e77bdc1
commit 5b14411669
No known key found for this signature in database
GPG Key ID: 7F3CEA63AE251B69

View File

@ -438,7 +438,7 @@ TEST_CASE("value conversion")
std::nullptr_t n; std::nullptr_t n;
json j(n); json j(n);
std::nullptr_t n2 = j; std::nullptr_t n2 = (std::nullptr_t)j;
CHECK(n2 == n); CHECK(n2 == n);
} }