[Boost-bugs] [Boost C++ Libraries] #10457: 'boost::locale::date_time_duration' : assignment operator could not be generated

Subject: [Boost-bugs] [Boost C++ Libraries] #10457: 'boost::locale::date_time_duration' : assignment operator could not be generated
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2014-09-04 16:00:39


#10457: 'boost::locale::date_time_duration' : assignment operator could not be
generated
------------------------------+---------------------
 Reporter: r.korthaus@… | Owner: artyom
     Type: Bugs | Status: new
Milestone: To Be Determined | Component: locale
  Version: Boost 1.56.0 | Severity: Problem
 Keywords: |
------------------------------+---------------------
 boost/locale/date_time.hpp: warning C4512:
 'boost::locale::date_time_duration' : assignment operator could not be
 generated

 This is generated with MSVC12 warning level 4. Compiling with treat
 warnings as error is problematic.

 The fix is simple, just add a deleted assignment operator:

 {{{
             /// Get ending point
             ///
             date_time const &end() const { return e_; }

 #if BOOST_WORKAROUND(BOOST_MSVC, BOOST_TESTED_AT(1800))
             // prevent warning C4512: assignment operator could not be
 generated
             BOOST_DELETED_FUNCTION(date_time_duration&
 operator=(date_time_duration const&))
 #endif
         private:
             date_time const &s_;
             date_time const &e_;
 }}}

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