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); } }