[Boost-bugs] [Boost C++ Libraries] #3879: split_winmain misses last argument if it is empty

Subject: [Boost-bugs] [Boost C++ Libraries] #3879: split_winmain misses last argument if it is empty
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2010-01-29 22:14:35


#3879: split_winmain misses last argument if it is empty
---------------------------+------------------------------------------------
 Reporter: anonymous | Owner: vladimir_prus
     Type: Bugs | Status: new
Milestone: Boost 1.42.0 | Component: program_options
  Version: Boost 1.41.0 | Severity: Optimization
 Keywords: split_winmain |
---------------------------+------------------------------------------------
 When passing an empty quoted string as last argument to split_winmain, it
 is not in the returned vector (unless there is a trailing space).

 Example:[[BR]]
 assert(split_winmain("arg0 \"\"").size() == 2); // FAILS (.size() ==
 1)[[BR]]
 assert(split_winmain("arg0 \"\" ").size() == 2); // OK

 I appended a quick and dirty patch that should fix this.

 btw. I don't know if this is actually a problem for program_options type
 of command lines, I noticed this when I was using the split_winmain only.

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/3879>
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:02 UTC