From 5e3e12fb93b66006c7d7411ae0b3f02178509b69 Mon Sep 17 00:00:00 2001 From: Qin Liu Date: Thu, 14 Jan 2016 16:07:27 +0800 Subject: [PATCH] Fix: catch exceptions by reference --- src/graphlab/options/command_line_options.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/graphlab/options/command_line_options.cpp b/src/graphlab/options/command_line_options.cpp index a50e0334cc..436685c0bd 100644 --- a/src/graphlab/options/command_line_options.cpp +++ b/src/graphlab/options/command_line_options.cpp @@ -135,7 +135,7 @@ static const char* graph_help_string = } boost_po::store(parsed, vm); boost_po::notify(vm); - } catch( boost_po::error error) { + } catch(boost_po::error& error) { std::cout << "Invalid syntax:\n" << "\t" << error.what() << "\n\n" << std::endl