catch exception by ref

This commit is contained in:
Michael Davidsaver
2019-12-13 09:30:56 -08:00
parent 07b75e4543
commit 3a5cfba4e1

View File

@@ -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
}