Boost logo

Boost :

Subject: Re: [boost] [Config] Multiple versions of Boost
From: Steven Watanabe (watanabesj_at_[hidden])
Date: 2008-09-13 12:37:11


AMDG

Sohail Somani wrote:
> There is one obvious problem I see with the -DBOOST_NAMESPACE=foo
> approach: there is no way to include two versions of Boost within the
> same translation unit. Unfortunately, I don't think there would be any
> acceptable way to do this. Though I'm sure you will come back with a way
> to do it!
>

There is actually a worse problem. Any solution involving
a namespace alias will break code like:

namespace boost {
namespace fusion {
namespace extension {
    template<>
    struct begin_impl<...> { ... };
}
}
}

In Christ,
Steven Watanabe


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk