From 69bb59d15f949b36ce07b079b68fdebc0789584f Mon Sep 17 00:00:00 2001 From: Sascha Ochsenknecht Date: Mon, 7 Dec 2009 13:35:01 +0000 Subject: [PATCH] Adapt examples regarding to exception class cleanup [SVN r58218] --- example/regex.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/example/regex.cpp b/example/regex.cpp index 17aec74..8fb6ab8 100644 --- a/example/regex.cpp +++ b/example/regex.cpp @@ -61,7 +61,7 @@ void validate(boost::any& v, if (regex_match(s, match, r)) { v = any(magic_number(lexical_cast(match[1]))); } else { - throw validation_error("invalid value"); + throw validation_error(validation_error::invalid_option_value); } }