Boost logo

Boost Users :

Subject: Re: [Boost-users] 1_41_0 exposes macro collision with thread
From: Stonewall Ballard (sb.list_at_[hidden])
Date: 2009-12-04 13:44:38


On Dec 4, 2009, at 11:49 AM, Marshall Clow wrote:

> On Dec 4, 2009, at 8:18 AM, Stonewall Ballard wrote:
>
>> Just a heads-up that since 1_41_0 removes libs/thread/src/pthread/exceptions.cpp file from the thread library (its now header-only), it's exposed to any precompiled headers with XCode. If you're using Carbon or (I think) CoreFoundation, that defines a macro named "check", which causes compilation errors in exception/diagnostic_information.cpp.
>>
>> I've had to add #undef check in files that include boost to eliminate this problem.
>
> There's a trac ticket for this:
> https://svn.boost.org/trac/boost/ticket/2115
>
> and I updated the inspection program to look for these identifiers a couple of weeks ago.
>
> Now we just have to root them all out and change them :-(

I'm amazed that you're planning to do that. I would have thought that would break too much user code.

 - Stoney

-- 
Stonewall Ballard 
stoney_at_[hidden]           http://stoney.sb.org/

Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net