From b1cb010ec699acdd0b9e8331454dd563fcac813c Mon Sep 17 00:00:00 2001 From: mes5k Date: Fri, 22 Oct 2004 01:02:32 +0000 Subject: [PATCH] catch by ref --- include/tclap/CmdLine.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/tclap/CmdLine.h b/include/tclap/CmdLine.h index 2aa3f35..e0499d8 100644 --- a/include/tclap/CmdLine.h +++ b/include/tclap/CmdLine.h @@ -454,7 +454,7 @@ inline void CmdLine::parse(int argc, char** argv) if ( requiredCount > _numRequired ) throw(CmdLineParseException("Too many arguments!")); - } catch ( ArgException e ) { failure(e); } + } catch ( ArgException& e ) { failure(e); } } inline bool CmdLine::_emptyCombined(const std::string& s)