[Boost-bugs] [Boost C++ Libraries] #9852: 'boost::program_options::options_description' : assignment operator could not be generated

Subject: [Boost-bugs] [Boost C++ Libraries] #9852: 'boost::program_options::options_description' : assignment operator could not be generated
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2014-04-08 09:29:30


#9852: 'boost::program_options::options_description' : assignment operator could
not be generated
------------------------------+-----------------------------
 Reporter: nn1436401@… | Owner: vladimir_prus
     Type: Feature Requests | Status: new
Milestone: To Be Determined | Component: program_options
  Version: Boost 1.55.0 | Severity: Problem
 Keywords: |
------------------------------+-----------------------------
 boost/program_options/options_description.hpp(261): warning C4512:
 'boost::program_options::options_description' : assignment operator could
 not be generated

 Compiling with treat warnings as error is problematic.

 The fix is simple, just add private deleted assignment operator.

 {{{#!cpp
 class BOOST_PROGRAM_OPTIONS_DECL options_description {
 {

 ...
 private:
   options_description& operator=(options_description const&);
 };
 }}}

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