Subject: Re: [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 21:18:32
#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
Resolution: | Keywords: C4512 warning bimap assignment operator operator=
--------------------------------------------------------+-------------------
Comment (by Stefan van Kessel <van_kessel@â¦>):
There are template parameters for which the compiler can generate the
operator= and for which just declaring it will therefore break some of the
classes. A correct fix that works in all contexts is not as easy as I
thought. A traits class like is_assignable for the member and base class
types would be needed to only declare the operator= if either of the
aforementioned is not assignable.
-- Ticket URL: <https://svn.boost.org/trac/boost/ticket/4686#comment:1> 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