[Boost-bugs] [Boost C++ Libraries] #4686: MSVC warning C4512 at /W4 (operator= can't be created)

Subject: [Boost-bugs] [Boost C++ Libraries] #4686: MSVC warning C4512 at /W4 (operator= can't be created)
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2010-09-26 20:18:19


#4686: MSVC warning C4512 at /W4 (operator= can't be created)
---------------------------------------------------------------+------------
 Reporter: Stefan van Kessel <van_kessel@…> | Owner: matias
     Type: Patches | Status: new
Milestone: To Be Determined | Component: bimap
  Version: Boost 1.44.0 | Severity: Cosmetic
 Keywords: C4512 warning bimap assignment operator operator= |
---------------------------------------------------------------+------------
 At /W4 msvc10 warns about not being able to generate the assignment
 operator for 4 classes.


 Example code that generates the warnings:

 {{{
 #include <boost/bimap.hpp>
 int main(){
         boost::bimap< int, char > bm;
 }
 }}}
 As the boost warnings
 guidelines[https://svn.boost.org/trac/boost/wiki/Guidelines/WarningsGuidelines]
 state "Adding the declaration (not the definition) of the appropriate
 operator=() as a private member does the trick as well." (disabling the
 warning by pragma would have to still be active at the point of bimap
 instantiation and thus disable the warning in user code)

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