Re: [Boost-bugs] [Boost C++ Libraries] #1132: zero_tokens doesn't work (was: zero_tokens clarification)

Subject: Re: [Boost-bugs] [Boost C++ Libraries] #1132: zero_tokens doesn't work (was: zero_tokens clarification)
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2009-01-17 21:18:21


#1132: zero_tokens doesn't work
----------------------------------------------+-----------------------------
  Reporter: Bryan Green <bgreen0_at_[hidden]> | Owner: vladimir_prus
      Type: Bugs | Status: new
 Milestone: Boost 1.36.0 | Component: program_options
   Version: Boost 1.34.1 | Severity: Problem
Resolution: | Keywords:
----------------------------------------------+-----------------------------

Comment(by grywacz_at_[hidden]):

 The simplest program to test with:

 #include <boost/program_options.hpp>
 #include <iostream>
 #include <string>

 using namespace std;
 namespace po = boost::program_options;

 int main(int argc, char *argv[])
 {
     po::options_description desc("test");
     desc.add_options()
         ("server", po::value<std::string>()->zero_tokens());

     po::variables_map vm;

     po::store(po::command_line_parser(argc, argv).options(desc).run(),
 vm);
 }

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/1132#comment:7>
Boost C++ Libraries <http://www.boost.org/>
Boost provides free peer-reviewed portable C++ source libraries.

This archive was generated by hypermail 2.1.7 : 2017-02-16 18:49:59 UTC