Boost C++ Libraries: Ticket #9852: 'boost::program_options::options_description' : assignment operator could not be generated https://svn.boost.org/trac10/ticket/9852 <p> boost/program_options/options_description.hpp(261): warning C4512: 'boost::program_options::options_description' : assignment operator could not be generated </p> <p> Compiling with treat warnings as error is problematic. </p> <p> The fix is simple, just add private deleted assignment operator. </p> <div class="wiki-code"><div class="code"><pre><span class="k">class</span> <span class="nc">BOOST_PROGRAM_OPTIONS_DECL</span> <span class="n">options_description</span> <span class="p">{</span> <span class="p">{</span> <span class="p">...</span> <span class="k">private</span><span class="o">:</span> <span class="n">options_description</span><span class="o">&amp;</span> <span class="k">operator</span><span class="o">=</span><span class="p">(</span><span class="n">options_description</span> <span class="k">const</span><span class="o">&amp;</span><span class="p">);</span> <span class="p">};</span> </pre></div></div> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/9852 Trac 1.4.3 Vladimir Prus Wed, 09 Apr 2014 10:07:25 GMT status changed; resolution set https://svn.boost.org/trac10/ticket/9852#comment:1 https://svn.boost.org/trac10/ticket/9852#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> This was previously fixed in <a class="ext-link" href="https://github.com/boostorg/program_options/commit/3ce1c74a0f0257d291c47e28bd2bae8385b69225"><span class="icon">​</span>https://github.com/boostorg/program_options/commit/3ce1c74a0f0257d291c47e28bd2bae8385b69225</a> </p> Ticket