Boost logo

Boost Users :

Subject: Re: [Boost-users] Mac OS 10.6 MacPorts and duplicate tr1 tuples
From: John Maddock (john_at_[hidden])
Date: 2009-12-02 04:41:12


> I'm trying to use the mac ports version of boost 1.41 on mac os 10.6,
> XCode 3.2. I'm running in to problems due to (I think) the fact that the
> mac os version of g++ 4.2.1 includes it own definition of the tr1 tuple.
> This results duplicate definitions when the boost/tr1/tuple.hpp header is
> included in a file (and some boost headers include it internally). What is
> the right way to work around this? I see various preprocessor symbols I
> can define, but an not sure what the cleanest way is. Thanks.

Try BOOST_HAS_GCC_TR1,

HTH, John.


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