On Tue, 30 Jan 2007 11:11:20 -0500 (EST) "Caleb Tennis" <[EMAIL PROTECTED]> wrote: | > * Hard dep upon boost. This sucks for g++-4.1 users. | > | > * Hard dep upon g++-4.1, which isn't available for all archs. This | > doesn't even work because there's no guarantee that >=4.1 is being | > used even if it's installed. | | I don't think these are necessarily compatible. tr1 is implemented | in the std::tr1, while I think everything in boost is just in the | boost namespace (unless this has changed since I've used boost). | This would mean that the project code itself would have to have the | logic to decide which set of headers to use. I'm guessing most | probably won't have the compatibility code to make that accessment, | though some may.
Everything I've seen that uses tr1 can also use boost. The compatibility code is just something like: #include <boost/shared_ptr.hpp> namespace std { namespace tr1 { using boost::shared_ptr; using boost::enable_shared_from_this; using boost::static_pointer_cast; // and anything else that's necessary } } It's not exactly difficult to do... -- Ciaran McCreesh Mail : ciaranm at ciaranm.org Web : http://ciaranm.org/ Paludis, the secure package manager : http://paludis.pioto.org/
signature.asc
Description: PGP signature