Boost logo

Boost Users :

Subject: Re: [Boost-users] 1_41_0 exposes macro collision with thread
From: Marshall Clow (mclow.lists_at_[hidden])
Date: 2009-12-04 14:14:03

On Dec 4, 2009, at 10:44 AM, Stonewall Ballard wrote:
> 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:
>> 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.

Most of them are in "detail" namespaces and test programs.
Those can be changed w/o affecting user code.

The public ones .. well, we'll have to look at each of them...

-- Marshall

P.S. I'm not going to do it all myself, either.

Boost-users list run by williamkempf at, kalb at, bjorn.karlsson at, gregod at, wekempf at