Opened 10 years ago

Closed 10 years ago

#8080 closed Bugs (fixed)

initialization order reversal in transform_width copy constructor

Reported by: jinmei@… Owned by: Robert Ramey
Milestone: To Be Determined Component: serialization
Version: Boost 1.53.0 Severity: Problem
Keywords: Cc:

Description

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.

Attachments (1)

transform_width.diff (512 bytes ) - added by anonymous 10 years ago.

Download all attachments as: .zip

Change History (2)

by anonymous, 10 years ago

Attachment: transform_width.diff added

comment:1 by Robert Ramey, 10 years ago

Resolution: fixed
Status: newclosed

already fixed in the trunk

Note: See TracTickets for help on using tickets.