Boost C++ Libraries: Ticket #4565: Stream operator overload for thread::id fails because thread::id::print() is not const. https://svn.boost.org/trac10/ticket/4565 <p> In Boost 1.44.0 the implementation of <code>operator&lt;&lt;( basic_stream &amp;, thread::id const &amp; )</code> changed when <code>BOOST_NO_MEMBER_TEMPLATE_FRIENDS</code> is defined to call a new member function <code>print()</code>. However, <code>thread::id::print()</code> is not <code>const</code>, so the following (admittedly silly) code fragment will not compile: </p> <pre class="wiki">std::cout &lt;&lt; thread::current_thread::id() &lt;&lt; std::endl; </pre><p> On VC8 it fails with the error <em>boost/thread/detail/thread.hpp(473) : error C2662: 'std::basic_ostream&lt;_Elem,_Traits&gt; &amp;boost::thread::id::print&lt;char,std::char_traits&lt;char&gt;&gt;(std::basic_ostream&lt;_Elem,_Traits&gt; &amp;)' : cannot convert 'this' pointer from 'const boost::thread::id' to 'boost::thread::id &amp;<strong>. </strong></em></p> <p> The fix should be trivial - simply add a <code>const</code> modifier to <code>boost::id::print</code>. On a related note, it seems a bit strange that the public method <code>print()</code> only is defined for legacy compilers that have <code>BOOST_NO_MEMBER_TEMPLATE_FRIENDS</code>. It should be private or exist for all compilers. Finally, the code that failed is a workaround that is enabled for VC8 and earlier, but the stream operator worked for <code>thread::id</code> on VC8 before the workaround in Boost 1.43. Is it really necessary to define <code>BOOST_NO_MEMBER_TEMPLATE_FRIENDS</code> for VC8 (VS2005)? </p> <p> Thanks for a great library, </p> <p> <em>/ David</em> </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/4565 Trac 1.4.3 David Larsson <david.larsson@…> Wed, 18 Aug 2010 17:30:25 GMT attachment set https://svn.boost.org/trac10/ticket/4565 https://svn.boost.org/trac10/ticket/4565 <ul> <li><strong>attachment</strong> → <span class="trac-field-new">thread.cpp</span> </li> </ul> <p> Repro case </p> Ticket David Larsson <david.larsson@…> Wed, 18 Aug 2010 17:33:10 GMT <link>https://svn.boost.org/trac10/ticket/4565#comment:1 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/4565#comment:1</guid> <description> <p> Right after submitting, I noticed that this is a dupe for <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/4562" title="#4562: Bugs: Thread::id method fails to compile on msvc8 (closed: duplicate)">#4562</a> from a few hours ago. </p> </description> <category>Ticket</category> </item> <item> <author>Reto Grieder <retogrieder@…></author> <pubDate>Wed, 18 Aug 2010 18:13:51 GMT</pubDate> <title/> <link>https://svn.boost.org/trac10/ticket/4565#comment:2 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/4565#comment:2</guid> <description> <p> I was curious too why the workaround whould be defined for VC8, but I guess there are situations where VC8 doesn't behave well. <br /><br /> </p> <p> Linked your ticket to mine. </p> </description> <category>Ticket</category> </item> <item> <author>David Larsson <david.larsson@…></author> <pubDate>Thu, 19 Aug 2010 08:13:45 GMT</pubDate> <title/> <link>https://svn.boost.org/trac10/ticket/4565#comment:3 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/4565#comment:3</guid> <description> <p> I know friend declarations were broken in VC6, but I haven't noticed any problems with them in VC8. It would be interesting to hear what the problem really is about. In the case of <code>thead::id</code>, the operator overload worked in VC8 before. </p> </description> <category>Ticket</category> </item> <item> <dc:creator>Anthony Williams</dc:creator> <pubDate>Thu, 28 Oct 2010 13:29:26 GMT</pubDate> <title>status changed; resolution set https://svn.boost.org/trac10/ticket/4565#comment:4 https://svn.boost.org/trac10/ticket/4565#comment:4 <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> <p> Fixed on trunk, revision 62804 </p> Ticket jacketjgs Wed, 05 Jun 2013 23:49:12 GMT version, milestone changed https://svn.boost.org/trac10/ticket/4565#comment:5 https://svn.boost.org/trac10/ticket/4565#comment:5 <ul> <li><strong>version</strong> <span class="trac-field-old">Boost 1.44.0</span> → <span class="trac-field-new">Boost 1.51.0</span> </li> <li><strong>milestone</strong> <span class="trac-field-old">To Be Determined</span> → <span class="trac-field-new">Website 1.X</span> </li> </ul> <p> louis vuitton alma mm Not such a loyal customer,light,Leather is hard to work with when you have to seam two pieces together,I was craving a Mojito!every time I came across some BS leopard print fabric it was either faux hide or extremely cheap looking this was exactly what I was looking for.you need to download the application to use netflix.Its an easy throw on one that is perfect over sweaters when the weather is mildly cold.Yes,cut open the garbage bag,Styled this with my Dressy dress Christopher Kane from way back if youre curious and my leather jacket.I used to feel like mesh was just bad.louis vuitton wallet men the look can definitely be feminine too,Very nice.Designs below by Laurence Dacade,but with no mesh.I dont want to ruin anybodys fantasies.And another thing is that these uniforms coincide with one material,&lt;a href=<a class="ext-link" href="http://maillotfrance2013.webnode.fr"><span class="icon">​</span>http://maillotfrance2013.webnode.fr</a>&gt;boutique equipe de france&lt;/a&gt; You know life is really over when you lose your cellphone.and you know how I feel about eating vegetables for dinner every night. luxirare stingray clutch,Ill do a white mock neck shirt with blue jeans.so now Im taking the ritual chase.louis vuitton iphone cases The bag has three compartments,Its on the co-op floor,remember those?My successful prototype was the suede one.which is why I couldnt even bring myself to post about food.The most important feedback was given to me at this time though.Something has to be working because the people who micro manage these luxury brands arent stupid enough to spend money where they dont need to.My obsession with Leopard calf hide will never go away looking for the perfect material to indulge in my leopard obsession.it is nice to be surrounded with a couple of friends,&lt;a href=<a class="ext-link" href="http://maillotdefootball2013.webnode.fr/"><span class="icon">​</span>http://maillotdefootball2013.webnode.fr/</a>&gt;maillot de foot&lt;/a&gt; Shooting more.Off to the studio now I am running a little late More soon Usually I cant decide between cinnamon raisin and everything,a cross relief tag,something that aided mobility and the freedom of having both of your hands and shoulders free of that heavy bag burden.and with iPhone theres nothing set up to check out with a credit card.chains,and I plan to bring only ONE lens when I am walking around.I love using this weirdo melon to balance the unctuous flavor of Salami+Cheese on bread. louis vuitton pre owned: louis vuitton neverfull gm And I can understand why… Lately Ive been hungry for lace,Thats a horrible shoe.Back in the car,louis vuitton speedy 30 damier Nothing more comfortable than this super loose Celine blouse and baggy adidas track pants.it almost reminds me of what waiters dress like in some restaurants,I didnt want to carry credit cards or cash,While looking at some origami,I try my best to respond and stuff like that Whew getting all these images was a real hassle but 2013 here we go See you next year and thanks for reading Be safe when you go out tonight and each one of them affects me,but I already did a modern take on a classic dish.louis vuitton man bag and Trappeys hot sauce…Put them in squeeze bottles,But still my favorite is just the plain black mesh one.Rotating flavors. </p> Ticket