Index: example/response_file.cpp =================================================================== --- example/response_file.cpp (Revision 57194) +++ example/response_file.cpp (Arbeitskopie) @@ -28,6 +28,8 @@ #include using namespace std; + + // Additional command line parser which interprets '@something' as a // option "config-file" with the value "something" pair at_option_parser(string const&s) @@ -70,7 +72,8 @@ 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 @@ -86,8 +89,7 @@ if (vm.count("magic")) { cout << "Magic value: " << vm["magic"].as() << "\n"; } - } - catch(exception& e) { + } catch(std::exception& e) { cout << e.what() << "\n"; } }