Opened 9 years ago

Closed 9 years ago

#8542 closed Bugs (fixed)

Including date_time.hpp after CoreServices.h results in compiler error

Reported by: collin@… Owned by: John Maddock
Milestone: To Be Determined Component: type_traits
Version: Boost 1.53.0 Severity: Problem
Keywords: CoreServices Cc:

Description

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.

I've found that if I include <CoreServices/CoreServices.h> before <boost/date_time.hpp>, I get a series of expected } errors and an expected unqualified-id before 'do'.

I am able to reproduce this with a cpp file containing: #include <CoreServices/CoreServices.h> #include <boost/date_time.hpp>

Attachments (2)

datetimeerror.txt (7.6 KB ) - added by collin@… 9 years ago.
Compiler output
8542.patch (3.4 KB ) - added by Marshall Clow 9 years ago.

Download all attachments as: .zip

Change History (6)

by collin@…, 9 years ago

Attachment: datetimeerror.txt added

Compiler output

comment:1 by collin@…, 9 years ago

Summary: Including date_time.hpp after CoreServices.h results in syntax errorIncluding date_time.hpp after CoreServices.h results in compiler error

comment:2 by Steven Watanabe, 9 years ago

The problem is the macro check. See #2115.

by Marshall Clow, 9 years ago

Attachment: 8542.patch added

comment:3 by Marshall Clow, 9 years ago

Component: date_timetype_traits
Owner: changed from az_sw_dude to John Maddock

The fix for this goes into Boost.TypeTraits; not DateTime.

Patch attached. (rename 'check' --> 'check_', sigh)

Last edited 9 years ago by Marshall Clow (previous) (diff)

comment:4 by John Maddock, 9 years ago

Resolution: fixed
Status: newclosed
Note: See TracTickets for help on using tickets.