Fix compilation with GCC 8 (#1051)

The anonymous namespace was renamed due to -Wsubobject-linkage complaining
about a field created in a GTest template class (CborRoundtripTestParam)
being defined in an anonymous namespace. See
https://stackoverflow.com/a/37723265.
This commit is contained in:
Tyler Veness
2018-05-13 23:11:13 -07:00
committed by Peter Johnson
parent 74d7107ac6
commit 5ff3d837b6
3 changed files with 17 additions and 9 deletions

View File

@@ -70,7 +70,7 @@ using wpi::json;
try {
json::parse(json_string);
} catch (json::parse_error) {
} catch (json::parse_error&) {
if (success_expected)
{
basemsg = "parse_error";