Boost C++ Libraries: Ticket #4886: options_description clear() method https://svn.boost.org/trac10/ticket/4886 <p> For a project I'm working on, I consistently add the following public clear() method to the boost/program_options/options_description.hpp header file. It's possible that others may find this clear() method useful as well. </p> <blockquote> <p> void clear() { </p> <blockquote> <p> m_options.clear(); belong_to_group.clear(); groups.clear(); </p> </blockquote> <p> } </p> </blockquote> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/4886 Trac 1.4.3 viboes Sat, 27 Nov 2010 14:13:07 GMT type changed https://svn.boost.org/trac10/ticket/4886#comment:1 https://svn.boost.org/trac10/ticket/4886#comment:1 <ul> <li><strong>type</strong> <span class="trac-field-old">Patches</span> → <span class="trac-field-new">Feature Requests</span> </li> </ul> <p> Patches for feature request should contain tests and documentation so the ticket can be considered as a Patch. </p> Ticket