[Boost-bugs] [Boost C++ Libraries] #8080: initialization order reversal in transform_width copy constructor

Subject: [Boost-bugs] [Boost C++ Libraries] #8080: initialization order reversal in transform_width copy constructor
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2013-02-16 21:46:37


#8080: initialization order reversal in transform_width copy constructor
------------------------------+---------------------------------------------
 Reporter: jinmei@… | Owner: ramey
     Type: Bugs | Status: new
Milestone: To Be Determined | Component: serialization
  Version: Boost 1.53.0 | Severity: Problem
 Keywords: |
------------------------------+---------------------------------------------
 The copy constructor of boost::archive::iterators::transform_width
 initializes member variable m_remaining_bits before m_buffer_in,
 while the former is placed after the latter in the class. Although
 this doesn't seem to do any real harm, some compilers warn about it,
 and it could also be promoted to an error with a compiler option
 such as -Werror. I'm attaching a patch for a trivial fix.

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