mirror of
https://github.com/allankoechke/soci.git
synced 2026-11-30 10:58:24 +00:00
Avoid g++-8 -Wcatch-value warnings in the tests
Catch soci_error (and std::bad_cast in one place) by reference rather than by value to avoid slicing -- even if it doesn't matter in the test code, it still provokes the new g++-8 warning about it. See #640.
This commit is contained in:
@@ -626,7 +626,7 @@ TEST_CASE("PostgreSQL JSON", "[postgresql][json]")
|
||||
|
||||
CHECK_THROWS_AS((
|
||||
sql << "insert into soci_json_test (data) values(:data)",use(invalid_input)),
|
||||
soci_error
|
||||
soci_error&
|
||||
);
|
||||
}
|
||||
else
|
||||
|
||||
Reference in New Issue
Block a user