We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f67b0b4 commit b6302a3Copy full SHA for b6302a3
src/example.cpp
@@ -60,7 +60,7 @@ int main(int argc, char** argv) {
60
try {
61
auto val = parser.get<int>("bar"); // fail: no name 'bar' was specified
62
(void)val; // shut up, compiler!
63
- } catch (std::runtime_error e) {
+ } catch (std::runtime_error const& e) {
64
std::cerr << e.what() << std::endl;
65
return 1;
66
}
0 commit comments