diff --git a/doc/howto.xml b/doc/howto.xml index bc8808f..d260259 100644 --- a/doc/howto.xml +++ b/doc/howto.xml @@ -115,7 +115,8 @@ if (vm.count("response-file")) { ss << ifs.rdbuf(); // Split the file content char_separator sep(" \n\r"); - tokenizer > tok(ss.str(), sep); + std::string ResponsefileContents( ss.str() ); + tokenizer > tok(ResponsefileContents, sep); vector args; copy(tok.begin(), tok.end(), back_inserter(args)); // Parse the file and store the options @@ -295,7 +296,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(valodation_error::invalid_option_value); } } ]]>