Opened 9 years ago

Closed 9 years ago

#9852 closed Feature Requests (fixed)

'boost::program_options::options_description' : assignment operator could not be generated

Reported by: nn1436401@… Owned by: Vladimir Prus
Milestone: To Be Determined Component: program_options
Version: Boost 1.55.0 Severity: Problem
Keywords: Cc:

Description

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.

class BOOST_PROGRAM_OPTIONS_DECL options_description {
{

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

Change History (1)

comment:1 by Vladimir Prus, 9 years ago

Resolution: fixed
Status: newclosed
Note: See TracTickets for help on using tickets.