mirror of
https://github.com/pocoproject/poco.git
synced 2025-02-23 07:12:45 +01:00
fix 'catching polymorphic type by value' warnings
This commit is contained in:
parent
0693ff95f7
commit
1c248cd63f
@ -907,7 +907,7 @@ void OrderedContainersTest::testHeterogeneousLookups()
|
||||
map.at(addr_unknown);
|
||||
fail("must throw");
|
||||
}
|
||||
catch (std::out_of_range) {}
|
||||
catch (std::out_of_range&) {}
|
||||
|
||||
assertTrue(map.find(addr1) != map.end());
|
||||
assertEquals(*map.find(addr1)->first, 1);
|
||||
|
Loading…
x
Reference in New Issue
Block a user