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: | 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&); };
Note:
See TracTickets
for help on using tickets.
This was previously fixed in https://github.com/boostorg/program_options/commit/3ce1c74a0f0257d291c47e28bd2bae8385b69225