diff --git a/example/response_file.cpp b/example/response_file.cpp index 18876a6..ce80f76 100644 --- a/example/response_file.cpp +++ b/example/response_file.cpp @@ -70,7 +70,8 @@ int main(int ac, char* av[]) ss << ifs.rdbuf(); // Split the file content char_separator sep(" \n\r"); - tokenizer > tok(ss.str(), sep); + string sstr = ss.str(); + tokenizer > tok(sstr, sep); vector args; copy(tok.begin(), tok.end(), back_inserter(args)); // Parse the file and store the options @@ -87,7 +88,7 @@ int main(int ac, char* av[]) cout << "Magic value: " << vm["magic"].as() << "\n"; } } - catch(exception& e) { + catch (std::exception& e) { cout << e.what() << "\n"; } }