Boost C++ Libraries: Ticket #3879: split_winmain misses last argument if it is empty https://svn.boost.org/trac10/ticket/3879 <p> 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). </p> <p> Example:<br /> assert(split_winmain("arg0 \"\"").size() == 2); <em> FAILS (.size() == 1)<br /> assert(split_winmain("arg0 \"\" ").size() == 2); </em> OK </p> <p> I appended a quick and dirty patch that should fix this. </p> <p> 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. </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/3879 Trac 1.4.3 anonymous Fri, 29 Jan 2010 22:15:23 GMT attachment set https://svn.boost.org/trac10/ticket/3879 https://svn.boost.org/trac10/ticket/3879 <ul> <li><strong>attachment</strong> → <span class="trac-field-new">winmain.patch</span> </li> </ul> Ticket Sascha Ochsenknecht Wed, 03 Feb 2010 06:33:57 GMT owner changed https://svn.boost.org/trac10/ticket/3879#comment:1 https://svn.boost.org/trac10/ticket/3879#comment:1 <ul> <li><strong>owner</strong> changed from <span class="trac-author">Vladimir Prus</span> to <span class="trac-author">Sascha Ochsenknecht</span> </li> </ul> Ticket Sascha Ochsenknecht Wed, 03 Feb 2010 08:26:37 GMT status changed; resolution set https://svn.boost.org/trac10/ticket/3879#comment:2 https://svn.boost.org/trac10/ticket/3879#comment:2 <ul> <li><strong>status</strong> <span class="trac-field-old">new</span> → <span class="trac-field-new">closed</span> </li> <li><strong>resolution</strong> → <span class="trac-field-new">fixed</span> </li> </ul> <p> (In <a class="changeset" href="https://svn.boost.org/trac10/changeset/59437" title="fix in winmain, Fixes #3879">[59437]</a>) fix in winmain, Fixes <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/3879" title="#3879: Bugs: split_winmain misses last argument if it is empty (closed: fixed)">#3879</a> </p> Ticket