Boost logo

Boost Users :

Subject: Re: [Boost-users] [lambda][tr1] Are the native std::tr1::functioninVisual Studio and boost::lambda compatible?
From: John Maddock (john_at_[hidden])
Date: 2009-07-29 11:33:32


>How can I setup my environment (intel 11.0, Windows
>VisualStudio2008SP1, boost1.38) to use the boost tr1 instead of the
>native when I #include<memory>, etc.? I can figure out from the boost
>tr1 and boost::build docs how to tell boost to use the native tr1, but
>is it possible to go the other direction and force it to use the boost
>libraries with the standard include method? I am especially worried
>about going cross-platform to Intel 11.0 on linux which I think uses
>the GNU standard libraries.

You can't do that I'm afraid: only one library can lay claim over namespace
std::tr1, so once Dinkumware have done so we have to step out of the way :-(

If you want to force use of the Boost implementation then use
boost::function rather than std::tr1::function.

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