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

Subject: Re: [Boost-bugs] [Boost C++ Libraries] #1132: zero_tokens doesn't work
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2010-12-29 20:38:05


#1132: zero_tokens doesn't work
----------------------------------------------+-----------------------------
  Reporter: Bryan Green <bgreen0@…> | 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 calum.mitchell@…):

 I ran into this problem when reading the documentation for 1.45.0 and
 trying to compile/run the example code.

 The resolution appears to be:

 desc.add_options()
     ("help", "produce help message")\\
     ("compression", value<string>(), "compression level")\\
     ("verbose", value<string>()->implicit_value("0"), "verbosity level")\\
     ("email", value<vector<string>>()->multitoken(), "email to send to")\\
     ;

 As mentioned in an earlier comment, the use of value<vector<string>>() for
 a multitoken() option means that the option can occur more than one time
 on the command line.

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/1132#comment:11>
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:50:05 UTC