Opened 10 years ago
Closed 10 years ago
#8080 closed Bugs (fixed)
initialization order reversal in transform_width copy constructor
Reported by: | 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)
Change History (2)
by , 10 years ago
Attachment: | transform_width.diff added |
---|
comment:1 by , 10 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
Note:
See TracTickets
for help on using tickets.
already fixed in the trunk