🚨 removed compiler warnings

This commit is contained in:
Niels Lohmann
2018-06-23 10:28:04 +02:00
parent 0460b90977
commit 850922269d
5 changed files with 26 additions and 28 deletions

View File

@@ -1191,7 +1191,7 @@ TEST_CASE("nst's JSONTestSuite (2)")
{
CAPTURE(filename);
std::ifstream f(filename);
CHECK_THROWS_AS(json::parse(f), json::parse_error);
CHECK_THROWS_AS(json::parse(f), json::parse_error&);
std::ifstream f2(filename);
CHECK(not json::accept(f2));
}
@@ -1306,7 +1306,7 @@ TEST_CASE("nst's JSONTestSuite (2)")
{
CAPTURE(filename);
std::ifstream f(filename);
CHECK_THROWS_AS(json::parse(f), json::exception); // could be parse_error or out_of_range
CHECK_THROWS_AS(json::parse(f), json::exception&); // could be parse_error or out_of_range
std::ifstream f2(filename);
CHECK(not json::accept(f2));
}