Boost C++ Libraries: Ticket #2115: Avoid bad Apple macros https://svn.boost.org/trac10/ticket/2115 <p> Apple has a header called <code>&lt;AssertMacros.h&gt;</code> that <code>#define</code>s both “<code>check</code>” and “<code>check_error</code>.” These macros naturally collide with the same names in Boost. We should consider a global change. That would also probably require a global policy change for checkins. </p> <p> Assigning to Beman, Cc'ing John M, component "inspection script" assigned to John although I might be wrong about that, but obviously we need to discuss this. Maybe we'll decide to make it "wontfix" </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/2115 Trac 1.4.3 Marshall Clow Mon, 14 Jul 2008 13:42:46 GMT <link>https://svn.boost.org/trac10/ticket/2115#comment:1 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/2115#comment:1</guid> <description> <p> Just F-everyone's-I, here's a list of the macros defined in <a class="missing wiki">AssertMacros</a>.h: </p> <p> debug_string, check, ncheck, check_string, ncheck_string, check_noerr, check_noerr_string, verify, nverify, verify_string, nverify_string, verify_noerr, verify_noerr_string, verify_action, require, nrequire, require_action, nrequire_action, require_quiet, nrequire_quiet, require_action_quiet, nrequire_action_quiet, require_string, nrequire_string, require<span class="underline">action_string, nrequire</span>action_string, require_noerr, require_noerr_action, require_noerr_quiet, require_noerr_action_quiet, require_noerr_string, require_noerr_action_string. </p> <p> IMHO, the really nasty ones are: check, verify, require and check_error. </p> <p> My suggestion is to #define <span class="underline">ASSERTMACROS</span> in the darwin Jamfile, and to add a warning to the docs. </p> </description> <category>Ticket</category> </item> <item> <dc:creator>Marshall Clow</dc:creator> <pubDate>Mon, 14 Jul 2008 13:44:24 GMT</pubDate> <title/> <link>https://svn.boost.org/trac10/ticket/2115#comment:2 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/2115#comment:2</guid> <description> <p> The Wiki decided some of my text was formatting. The macro to define is "_ _ ASSERTMACROS _ _ " (w/o the spaces) </p> </description> <category>Ticket</category> </item> <item> <dc:creator>Beman Dawes</dc:creator> <pubDate>Sat, 11 Oct 2008 13:00:18 GMT</pubDate> <title>status changed https://svn.boost.org/trac10/ticket/2115#comment:3 https://svn.boost.org/trac10/ticket/2115#comment:3 <ul> <li><strong>status</strong> <span class="trac-field-old">new</span> → <span class="trac-field-new">assigned</span> </li> </ul> Ticket Foster Brereton <fbrereto@…> Thu, 13 Nov 2008 20:39:12 GMT <link>https://svn.boost.org/trac10/ticket/2115#comment:4 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/2115#comment:4</guid> <description> <p> Made changes to boost/detail/is_incrementable.hpp to get it to compile in the presence of the Apple check macro. Please see attached file. </p> </description> <category>Ticket</category> </item> <item> <author>Foster Brereton <fbrereto@…></author> <pubDate>Thu, 13 Nov 2008 20:39:50 GMT</pubDate> <title>attachment set https://svn.boost.org/trac10/ticket/2115 https://svn.boost.org/trac10/ticket/2115 <ul> <li><strong>attachment</strong> → <span class="trac-field-new">is_incrementable.hpp</span> </li> </ul> <p> is_incrementable.hpp patch </p> Ticket John Maddock Fri, 14 Nov 2008 10:00:15 GMT <link>https://svn.boost.org/trac10/ticket/2115#comment:5 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/2115#comment:5</guid> <description> <p> We've let this issue drop, </p> <p> but... since we have the macro BOOST_PREVENT_MACRO_SUBSTITUTION to suppress this kind of unexpected macro substitution, maybe we should just go ahead and add all the Apple macros to the inspect program? </p> <p> John. </p> </description> <category>Ticket</category> </item> <item> <dc:creator>Dave Abrahams</dc:creator> <pubDate>Fri, 14 Nov 2008 17:14:03 GMT</pubDate> <title/> <link>https://svn.boost.org/trac10/ticket/2115#comment:6 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/2115#comment:6</guid> <description> <p> Perhaps sadly, I have to agree. </p> </description> <category>Ticket</category> </item> <item> <dc:creator>Marshall Clow</dc:creator> <pubDate>Fri, 20 Nov 2009 18:12:13 GMT</pubDate> <title/> <link>https://svn.boost.org/trac10/ticket/2115#comment:7 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/2115#comment:7</guid> <description> <p> I have added the ability to find "check", "require", "verify" and "check_error" to the inspection program. It found almost 3000 files using these identifiers (2899, to be precise). </p> <p> Cleaning this up is going to be a large task. </p> </description> <category>Ticket</category> </item> <item> <dc:creator>Mateusz Loskot</dc:creator> <pubDate>Tue, 09 Mar 2010 23:27:54 GMT</pubDate> <title>cc changed https://svn.boost.org/trac10/ticket/2115#comment:8 https://svn.boost.org/trac10/ticket/2115#comment:8 <ul> <li><strong>cc</strong> <span class="trac-author">mateusz@…</span> added </li> </ul> Ticket Beman Dawes Mon, 30 May 2011 15:59:30 GMT status changed; resolution set https://svn.boost.org/trac10/ticket/2115#comment:9 https://svn.boost.org/trac10/ticket/2115#comment:9 <ul> <li><strong>status</strong> <span class="trac-field-old">assigned</span> → <span class="trac-field-new">closed</span> </li> <li><strong>resolution</strong> → <span class="trac-field-new">fixed</span> </li> </ul> <p> Closing inactive ticket </p> <p> --Beman </p> Ticket