add a switch to enable implicit conversions (defaults to true)

wrap implicit conversions tests around the JSON_USE_IMPLICIT_CONVERSIONS
macro
This commit is contained in:
Théo DELRIEU
2020-07-16 11:11:35 +02:00
parent 2cd10a7405
commit 74b446f5fd
15 changed files with 151 additions and 64 deletions

View File

@@ -1168,7 +1168,7 @@ TEST_CASE("Unicode" * doctest::skip())
continue;
}
std::string ptr = s;
auto ptr = s.get<std::string>();
// tilde must be followed by 0 or 1
if (ptr == "~")