catch exception by ref
This commit is contained in:
@@ -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