Re: [Boost-bugs] [Boost C++ Libraries] #6981: Can't use boost::ptr_vector<T>::auto_type as data member in GCC 4.6

Subject: Re: [Boost-bugs] [Boost C++ Libraries] #6981: Can't use boost::ptr_vector<T>::auto_type as data member in GCC 4.6
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2012-06-12 04:57:35


#6981: Can't use boost::ptr_vector<T>::auto_type as data member in GCC 4.6
----------------------------------------------+-----------------------------
  Reporter: Shuo Chen <giantchen@…> | Owner: nesotto
      Type: Bugs | Status: new
 Milestone: To Be Determined | Component: ptr_container
   Version: Boost 1.49.0 | Severity: Problem
Resolution: | Keywords:
----------------------------------------------+-----------------------------

Comment (by Shuo Chen <giantchen@…>):

 Workaround by declaring but not defining assignment operator and copy
 constructor.

 {{{
 class Pool
 {
  // ...
  private:
   void operator=(const Pool&);
   Pool(const Pool&);
 };
 }}}

 Looks like the error was trigger by compiler-generated copy ctor and/or
 assignment operator.

 Worth mention that in the doc and put auto_type in regression tests, IMO.

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/6981#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:50:09 UTC