Boost C++ Libraries: Ticket #11222: intrusive/pointer_traits.hpp fails to compile with C++98 https://svn.boost.org/trac10/ticket/11222 <p> boost/thread.hpp eventually includes boost/intrusive/pointer_traits.hpp. This gives compile errors, eg: /Source/SmartSound_109/0_SDK/Cross/boost/include/boost/intrusive/pointer_traits.hpp:36:1: Use of undeclared identifier 'check' </p> <p> The error depends on a compile setting, (Project settings): Apple LLVM 6.0 - Language - C++ </p> <blockquote> <p> C++ Language Dialect </p> <blockquote> <p> (set to) C++ 98 [std=c++98] </p> </blockquote> </blockquote> <p> This is on Mac OS 10.9 with Xcode 6.2. I attached a sample project that fails to compile by simply including boost/thread.hpp in main.mm. </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/11222 Trac 1.4.3 Marc Mondesir <marcm@…> Tue, 21 Apr 2015 21:18:28 GMT attachment set https://svn.boost.org/trac10/ticket/11222 https://svn.boost.org/trac10/ticket/11222 <ul> <li><strong>attachment</strong> → <span class="trac-field-new">TestyApp.zip</span> </li> </ul> <p> Zip archive of project demonstrating problem. </p> Ticket Ion Gaztañaga Fri, 26 Jun 2015 10:46:59 GMT <link>https://svn.boost.org/trac10/ticket/11222#comment:1 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/11222#comment:1</guid> <description> <p> It seems that current develop and master branches don't have this error (likely because the macro no longer uses a member "check" function which seems to be a macro in <a class="missing wiki">MacOs</a>. </p> <p> Can you test current develop version to see if the error is not present? </p> </description> <category>Ticket</category> </item> <item> <author>marcm@…</author> <pubDate>Tue, 30 Jun 2015 19:08:10 GMT</pubDate> <title/> <link>https://svn.boost.org/trac10/ticket/11222#comment:2 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/11222#comment:2</guid> <description> <p> I got the current head using Git. Including the header from that version builds without errors. Looks like it's fixed. </p> </description> <category>Ticket</category> </item> <item> <dc:creator>Ion Gaztañaga</dc:creator> <pubDate>Tue, 30 Jun 2015 19:35:27 GMT</pubDate> <title>status changed; resolution set https://svn.boost.org/trac10/ticket/11222#comment:3 https://svn.boost.org/trac10/ticket/11222#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> <p> Thanks for testing. The change was merged for the next release so I'm closing the ticket. </p> Ticket