|
Boost-Commit : |
Subject: [Boost-commit] svn:boost r58218 - trunk/libs/program_options/example
From: s.ochsenknecht_at_[hidden]
Date: 2009-12-07 08:35:01
Author: s_ochsenknecht
Date: 2009-12-07 08:35:01 EST (Mon, 07 Dec 2009)
New Revision: 58218
URL: http://svn.boost.org/trac/boost/changeset/58218
Log:
Adapt examples regarding to exception class cleanup
Text files modified:
trunk/libs/program_options/example/regex.cpp | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
Modified: trunk/libs/program_options/example/regex.cpp
==============================================================================
--- trunk/libs/program_options/example/regex.cpp (original)
+++ trunk/libs/program_options/example/regex.cpp 2009-12-07 08:35:01 EST (Mon, 07 Dec 2009)
@@ -61,7 +61,7 @@
if (regex_match(s, match, r)) {
v = any(magic_number(lexical_cast<int>(match[1])));
} else {
- throw validation_error("invalid value");
+ throw validation_error(validation_error::invalid_option_value);
}
}
Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk