catch exception by ref
This commit is contained in:
1 parent
07b75e4543
commit
3a5cfba4e1
1 file changed
+1
-1
@@ -748,7 +748,7 @@ void testBoundedString() {
|
||||
try {
|
||||
pvStr->put("tooLargeString");
|
||||
testFail("too large string accepted");
|
||||
} catch (std::overflow_error oe) {
|
||||
} catch (std::overflow_error& oe) {
|
||||
// OK
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user