Boost C++ Libraries: Ticket #7990: Copy constructor for transform_width has an initialization order reversal https://svn.boost.org/trac10/ticket/7990 <p> When compiling against Boost 1.53.0, GCC 4.4.3 and GCC 4.6.3 report an error regarding the order of initialization in the copy constructor: </p> <pre class="wiki">/home/shane.turner/Workbench/boost-test/include/3rdParty/boost/archive/iterators/transform_width.hpp: In copy constructor ‘boost::archive::iterators::transform_width&lt;Base, BitsOut, BitsIn, CharType&gt;::transform_width(const boost::archive::iterators::transform_width&lt;B ase, BitsOut, BitsIn, CharType&gt;&amp;) [with Base = boost::archive::iterators::binary_from_base64&lt;const char*, char&gt;, int BitsOut = 8, int BitsIn = 6, CharType = unsigned char]’: /home/shane.turner/Workbench/boost-test/include/npString/Base64.hh:42: instantiated from here /home/shane.turner/Workbench/boost-test/include/3rdParty/boost/archive/iterators/transform_width.hpp:104: error: ‘boost::archive::iterators::transform_width&lt;boost::archive::iterators::binary_from_base64&lt;const char*, char&gt;, 8, 6, unsigned char&gt;::m_remaining_bits’ wil l be initialized after /home/shane.turner/Workbench/boost-test/include/3rdParty/boost/archive/iterators/transform_width.hpp:101: error: ‘char boost::archive::iterators::transform_width&lt;boost::archive::iterators::binary_from_base64&lt;const char*, char&gt;, 8, 6, unsigned char&gt;::m_buffer_in’ /home/shane.turner/Workbench/boost-test/include/3rdParty/boost/archive/iterators/transform_width.hpp:119: error: when initialized here /home/shane.turner/Workbench/boost-test/include/3rdParty/boost/archive/iterators/transform_width.hpp: In copy constructor ‘boost::archive::iterators::transform_width&lt;Base, BitsOut, BitsIn, CharType&gt;::transform_width(const boost::archive::iterators::transform_width&lt;Base, BitsOut, BitsIn, CharType&gt;&amp;) [with Base = const char*, int BitsOut = 6, int BitsIn = 8, CharType = unsigned char]’: /home/shane.turner/Workbench/boost-test/include/3rdParty/boost/archive/iterators/base64_from_binary.hpp:103: instantiated from ‘boost::archive::iterators::base64_from_binary&lt;Base, CharType&gt;::base64_from_binary(const boost::archive::iterators::base64_from_binary&lt;Base, CharType&gt;&amp;) [with Base = boost::archive::iterators::transform_width&lt;const char*, 6, 8, unsigned char&gt;, CharType = unsigned char]’ /home/shane.turner/Workbench/boost-test/include/npString/Base64.hh:20: instantiated from here /home/shane.turner/Workbench/boost-test/include/3rdParty/boost/archive/iterators/transform_width.hpp:104: error: ‘boost::archive::iterators::transform_width&lt;const char*, 6, 8, unsigned char&gt;::m_remaining_bits’ will be initialized after /home/shane.turner/Workbench/boost-test/include/3rdParty/boost/archive/iterators/transform_width.hpp:101: error: ‘char boost::archive::iterators::transform_width&lt;const char*, 6, 8, unsigned char&gt;::m_buffer_in’ /home/shane.turner/Workbench/boost-test/include/3rdParty/boost/archive/iterators/transform_width.hpp:119: error: when initialized here </pre><p> The fix is a simple swap of two lines in the copy constructor. </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/7990 Trac 1.4.3 Shane Turner <shane.turner@…> Wed, 06 Feb 2013 13:40:31 GMT attachment set https://svn.boost.org/trac10/ticket/7990 https://svn.boost.org/trac10/ticket/7990 <ul> <li><strong>attachment</strong> → <span class="trac-field-new">transform_width.hpp.diff</span> </li> </ul> <p> Patch to fix copy constructor </p> Ticket Shane Turner <shane.turner@…> Wed, 06 Feb 2013 13:53:29 GMT cc set https://svn.boost.org/trac10/ticket/7990#comment:1 https://svn.boost.org/trac10/ticket/7990#comment:1 <ul> <li><strong>cc</strong> <span class="trac-author">shane.turner@…</span> added </li> </ul> <p> According to the svn logs, ramey was the last person to change transform_width.hpp, so it's possible, based on other bugs assigned to him, that the correct component is serialization. </p> Ticket Michel Morin Wed, 06 Feb 2013 14:38:11 GMT owner, component changed https://svn.boost.org/trac10/ticket/7990#comment:2 https://svn.boost.org/trac10/ticket/7990#comment:2 <ul> <li><strong>owner</strong> changed from <span class="trac-author">jeffrey.hellrung</span> to <span class="trac-author">Robert Ramey</span> </li> <li><strong>component</strong> <span class="trac-field-old">iterator</span> → <span class="trac-field-new">serialization</span> </li> </ul> Ticket Robert Ramey Wed, 06 Feb 2013 19:23:17 GMT status changed; resolution set https://svn.boost.org/trac10/ticket/7990#comment:3 https://svn.boost.org/trac10/ticket/7990#comment:3 <ul> <li><strong>status</strong> <span class="trac-field-old">new</span> → <span class="trac-field-new">closed</span> </li> <li><strong>resolution</strong> → <span class="trac-field-new">fixed</span> </li> </ul> Ticket anonymous Tue, 25 Jun 2013 08:09:14 GMT status, version, milestone changed; resolution deleted https://svn.boost.org/trac10/ticket/7990#comment:4 https://svn.boost.org/trac10/ticket/7990#comment:4 <ul> <li><strong>status</strong> <span class="trac-field-old">closed</span> → <span class="trac-field-new">reopened</span> </li> <li><strong>version</strong> <span class="trac-field-old">Boost 1.53.0</span> → <span class="trac-field-new">Boost Development Trunk</span> </li> <li><strong>resolution</strong> <span class="trac-field-deleted">fixed</span> </li> <li><strong>milestone</strong> <span class="trac-field-old">To Be Determined</span> → <span class="trac-field-new">Boost 1.54.0</span> </li> </ul> <p> It appears this patch hasn't been applied to the trunk? </p> Ticket reed@… Tue, 20 Aug 2013 14:38:07 GMT <link>https://svn.boost.org/trac10/ticket/7990#comment:5 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/7990#comment:5</guid> <description> <p> Please provide the commit revision number for the fix in 1.54.0. Thanks </p> </description> <category>Ticket</category> </item> <item> <dc:creator>Robert Ramey</dc:creator> <pubDate>Wed, 21 Aug 2013 03:36:50 GMT</pubDate> <title>status changed; resolution set https://svn.boost.org/trac10/ticket/7990#comment:6 https://svn.boost.org/trac10/ticket/7990#comment:6 <ul> <li><strong>status</strong> <span class="trac-field-old">reopened</span> → <span class="trac-field-new">closed</span> </li> <li><strong>resolution</strong> → <span class="trac-field-new">fixed</span> </li> </ul> <p> ok patched - subject to test </p> Ticket Chris Stylianou <chris5287@…> Sat, 19 Oct 2013 18:07:29 GMT <link>https://svn.boost.org/trac10/ticket/7990#comment:7 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/7990#comment:7</guid> <description> <p> Will this be merged into release for 1.55? </p> </description> <category>Ticket</category> </item> </channel> </rss>