Boost C++ Libraries: Ticket #11385: uuid serializes incorrectly if adjustfield left is set https://svn.boost.org/trac10/ticket/11385 <p> If the stream being used has adjustfield left set, any bytes less than 16 seem to be serialized incorrectly. I think this is because the padding of the leading '0' is done to the wrong side. ie 0x08 becomes 0x80 </p> <p> I'm using VS2013 on Windows 7. </p> <p> As an example: </p> <p> boost::uuids::uuid uuid = { 0x0a, 0xe0, 0x47, 0x50, 0x0a, 0x0a, 0xeb, 0xec, 0xed, 0xee, 0xfc, 0x08, 0x4d, 0xcf, 0xe7, 0xf5 }; <br /> stringstream ss;<br /> ss &lt;&lt; left &lt;&lt; uuid;<br /> cout &lt;&lt; ss.str() &lt;&lt; endl;<br /> </p> <p> Outputs: a0e04750-a0a0-ebec-edee-fc804dcfe7f5<br /> instead of 0ae04750-0a0a-ebec-edee-fc084dcfe7f5 </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/11385 Trac 1.4.3 Erich Keane <erich.keane@…> Thu, 31 Dec 2015 18:54:08 GMT <link>https://svn.boost.org/trac10/ticket/11385#comment:1 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/11385#comment:1</guid> <description> <p> Pull request was accepted based on this bug report here: <a class="ext-link" href="https://github.com/boostorg/uuid/pull/12"><span class="icon">​</span>https://github.com/boostorg/uuid/pull/12</a> </p> </description> <category>Ticket</category> </item> <item> <dc:creator>James E. King, III</dc:creator> <pubDate>Sat, 12 Aug 2017 23:09:28 GMT</pubDate> <title>status, milestone changed; resolution set https://svn.boost.org/trac10/ticket/11385#comment:2 https://svn.boost.org/trac10/ticket/11385#comment:2 <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> <li><strong>milestone</strong> <span class="trac-field-old">To Be Determined</span> → <span class="trac-field-new">Boost 1.62.0</span> </li> </ul> Ticket