Boost C++ Libraries: Ticket #11645: basic_option::basic_option(2) misses initialization for position_key https://svn.boost.org/trac10/ticket/11645 <p> The <code>basic_option(const std::string&amp; xstring_key, const std::vector&lt; std::string&gt; &amp;xvalue)</code> overload in <a class="ext-link" href="https://github.com/boostorg/program_options/blob/develop/include/boost/program_options/option.hpp#L31"><span class="icon">​</span>option.hpp:31</a> does not initialize the <code>position_key</code> member, while the default ctor does. </p> <p> When having an <code>extra_style_parser</code> and positional options the options that were removed by the <code>extra_style_parser</code> are considered positional, unless the <code>extra_style_parser</code> explicitely sets <code>position_key = -1</code>. </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/11645 Trac 1.4.3 Vladimir Prus Fri, 11 Sep 2015 19:16:27 GMT status changed; resolution set https://svn.boost.org/trac10/ticket/11645#comment:1 https://svn.boost.org/trac10/ticket/11645#comment:1 <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> Thanks for the report, this issue is not fixed in develop. Could you check again please? </p> Ticket anonymous Sat, 12 Sep 2015 14:21:52 GMT <link>https://svn.boost.org/trac10/ticket/11645#comment:2 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/11645#comment:2</guid> <description> <p> Exactly as expected. Wonderful. Thanks for the fast fix. :) </p> <p> Was there no compiler warning, though? That seems like something trivial to detect. </p> </description> <category>Ticket</category> </item> <item> <dc:creator>Vladimir Prus</dc:creator> <pubDate>Sat, 12 Sep 2015 18:44:04 GMT</pubDate> <title/> <link>https://svn.boost.org/trac10/ticket/11645#comment:3 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/11645#comment:3</guid> <description> <p> I don't think there were a compiler warning at the normal warning level. I've just tried with VS /W4, and it does not seem to warn either (while producing a pile of spurious warnings). </p> </description> <category>Ticket</category> </item> </channel> </rss>