Re: [Boost-bugs] [Boost C++ Libraries] #2270: Compile Warning: Assignment Operator Could not be generated

Subject: Re: [Boost-bugs] [Boost C++ Libraries] #2270: Compile Warning: Assignment Operator Could not be generated
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2009-01-21 15:15:49


#2270: Compile Warning: Assignment Operator Could not be generated
----------------------------------------------+-----------------------------
  Reporter: Ryan Mulder <rjmyst3_at_[hidden]> | Owner: ramey
      Type: Patches | Status: reopened
 Milestone: To Be Determined | Component: serialization
   Version: Boost 1.37.0 | Severity: Problem
Resolution: | Keywords:
----------------------------------------------+-----------------------------
Changes (by Ryan Mulder <rjmyst3_at_[hidden]>):

  * status: closed => reopened
  * version: Boost 1.36.0 => Boost 1.37.0
  * resolution: wontfix =>
  * milestone: Boost 1.37.0 => To Be Determined

Comment:

 Robert,

  Thanks for looking at this. I didn't reply to your comment 4 months ago,
 because I assumed you'd silence the warning in a different manner.

  As the warning from extended_type_info.hpp is still spawned during
 compilation, I urge you to reconsider this patch.

  I understand the design intent is to not allow copying the class. If you
 look closely at the patch, you'll see that the assignment operator is only
 declared, not defined. It is also in the private scope of the class.

  This will make your intent to prevent copying clear both to the compiler
 and the programmer, while still producing a compile-time error on an
 attempt to assign an instance of the class.

 Ryan Mulder

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/2270#comment:2>
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:49:59 UTC