diff --git a/samples/test_num_exceptions.cpp b/samples/test_num_exceptions.cpp index ba97f7a..36bbb75 100644 --- a/samples/test_num_exceptions.cpp +++ b/samples/test_num_exceptions.cpp @@ -23,7 +23,7 @@ int main( int /*argc*/ , char * /*argv*/[] ) { ch.eval( script ); } - catch ( std::exception e ) + catch ( const std::exception &e ) { printf( " >>> Exception thrown: %s \n" , e.what( ) ); }