RunParameters.cpp:270:26: warning: catching polymorphic type 'const class std::runtime_error' by value [-Wcatch-value=]
Source code is
catch (const runtime_error)
Ha! Good catch. Added there & to handle the exception by reference (unless the compiler optimizes unused constant away anyway)
Log in to post a comment.
Ha! Good catch. Added there & to handle the exception by reference (unless the compiler optimizes unused constant away anyway)