Skip to content

Commit b6302a3

Browse files
committed
resolved warning on Linux
1 parent f67b0b4 commit b6302a3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/example.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ int main(int argc, char** argv) {
6060
try {
6161
auto val = parser.get<int>("bar"); // fail: no name 'bar' was specified
6262
(void)val; // shut up, compiler!
63-
} catch (std::runtime_error e) {
63+
} catch (std::runtime_error const& e) {
6464
std::cerr << e.what() << std::endl;
6565
return 1;
6666
}

0 commit comments

Comments
 (0)