Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r67034 - branches/release/libs/program_options/doc
From: marshall_at_[hidden]
Date: 2010-12-05 15:36:58


Author: marshall
Date: 2010-12-05 15:36:54 EST (Sun, 05 Dec 2010)
New Revision: 67034
URL: http://svn.boost.org/trac/boost/changeset/67034

Log:
Merge doc patches to release; fixes #3992, fixes #4858
Text files modified:
   branches/release/libs/program_options/doc/howto.xml | 5 +++--
   1 files changed, 3 insertions(+), 2 deletions(-)

Modified: branches/release/libs/program_options/doc/howto.xml
==============================================================================
--- branches/release/libs/program_options/doc/howto.xml (original)
+++ branches/release/libs/program_options/doc/howto.xml 2010-12-05 15:36:54 EST (Sun, 05 Dec 2010)
@@ -115,7 +115,8 @@
      ss << ifs.rdbuf();
      // Split the file content
      char_separator<char> sep(" \n\r");
- tokenizer<char_separator<char> > tok(ss.str(), sep);
+ std::string ResponsefileContents( ss.str() );
+ tokenizer<char_separator<char> > tok(ResponsefileContents, sep);
      vector<string> args;
      copy(tok.begin(), tok.end(), back_inserter(args));
      // Parse the file and store the options
@@ -295,7 +296,7 @@
     if (regex_match(s, match, r)) {
         v = any(magic_number(lexical_cast<int>(match[1])));
     } else {
- throw validation_error("invalid value");
+ throw validation_error(valodation_error::invalid_option_value);
     }
 }
 ]]>


Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk