Boost C++ Libraries: Ticket #8542: Including date_time.hpp after CoreServices.h results in compiler error https://svn.boost.org/trac10/ticket/8542 <p> I'm using XCode 4 to compile a C++ project using GCC 4.2 on Mac OS X Lion (10.7.5) and Boost 1.53.0. </p> <p> I've found that if I include &lt;<a class="missing wiki">CoreServices/CoreServices</a>.h&gt; before &lt;boost/date_time.hpp&gt;, I get a series of <code>expected }</code> errors and an <code> expected unqualified-id before 'do'</code>. </p> <p> I am able to reproduce this with a cpp file containing: #include &lt;<a class="missing wiki">CoreServices/CoreServices</a>.h&gt; #include &lt;boost/date_time.hpp&gt; </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/8542 Trac 1.4.3 collin@… Thu, 02 May 2013 18:37:05 GMT attachment set https://svn.boost.org/trac10/ticket/8542 https://svn.boost.org/trac10/ticket/8542 <ul> <li><strong>attachment</strong> → <span class="trac-field-new">datetimeerror.txt</span> </li> </ul> <p> Compiler output </p> Ticket collin@… Thu, 02 May 2013 18:43:21 GMT summary changed https://svn.boost.org/trac10/ticket/8542#comment:1 https://svn.boost.org/trac10/ticket/8542#comment:1 <ul> <li><strong>summary</strong> <span class="trac-field-old">Including date_time.hpp after CoreServices.h results in syntax error</span> → <span class="trac-field-new">Including date_time.hpp after CoreServices.h results in compiler error</span> </li> </ul> Ticket Steven Watanabe Wed, 12 Mar 2014 17:47:26 GMT <link>https://svn.boost.org/trac10/ticket/8542#comment:2 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/8542#comment:2</guid> <description> <p> The problem is the macro check. See <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/2115" title="#2115: Bugs: Avoid bad Apple macros (closed: fixed)">#2115</a>. </p> </description> <category>Ticket</category> </item> <item> <dc:creator>Marshall Clow</dc:creator> <pubDate>Wed, 12 Mar 2014 18:37:22 GMT</pubDate> <title>attachment set https://svn.boost.org/trac10/ticket/8542 https://svn.boost.org/trac10/ticket/8542 <ul> <li><strong>attachment</strong> → <span class="trac-field-new">8542.patch</span> </li> </ul> Ticket Marshall Clow Wed, 12 Mar 2014 18:37:49 GMT owner, component changed https://svn.boost.org/trac10/ticket/8542#comment:3 https://svn.boost.org/trac10/ticket/8542#comment:3 <ul> <li><strong>owner</strong> changed from <span class="trac-author">az_sw_dude</span> to <span class="trac-author">John Maddock</span> </li> <li><strong>component</strong> <span class="trac-field-old">date_time</span> → <span class="trac-field-new">type_traits</span> </li> </ul> <p> The fix for this goes into Boost.TypeTraits; not DateTime. </p> <p> Patch attached. (rename 'check' --&gt; 'check_', sigh) </p> Ticket John Maddock Thu, 13 Mar 2014 18:22:07 GMT status changed; resolution set https://svn.boost.org/trac10/ticket/8542#comment:4 https://svn.boost.org/trac10/ticket/8542#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 in <a class="ext-link" href="https://github.com/boostorg/type_traits/commit/da8a57f9dc44948227a1c50e5678e34edc08e822"><span class="icon">​</span>https://github.com/boostorg/type_traits/commit/da8a57f9dc44948227a1c50e5678e34edc08e822</a> </p> Ticket