Boost logo

Boost :

From: Ralf W. Grosse-Kunstleve (rwgk_at_[hidden])
Date: 2005-02-21 00:46:03

--- Marshall Clow <marshall_at_[hidden]> wrote:

> In boost/libs/python/src/converter/registry.cpp, I found:
> >#if defined(__APPLE__) && defined(__MACH__) && defined(__GNUC__) \
> > && __GNUC__ == 3 && __GNUC_MINOR__ <= 4 && !defined(__APPLE_CC__)
> >#endif
> I have no idea what defining that big long symbol does,

I put it in to work around a nasty static initialization bug.
I had not clue what I was doing but thanks to the bad hack enabled by
work under OS X 10.2 eventually. I think I was using gcc 3.3 from
at the time.

> but I think
> that the conditionals
> are incorrect.

I am sure they are not pretty but they certainly did the job.

> So, I think that that whole #if expression always evaluates to "false".

Nope. Install the old gcc 3.3 from to verify.

See also:

How did you stumble over my hack? Does it cause any problems?


Do you Yahoo!?
Yahoo! Mail - Easier than ever with enhanced search. Learn more.

Boost list run by bdawes at, gregod at, cpdaniel at, john at