Boost logo

Boost :

Subject: Re: [boost] [Config] Multiple versions of Boost
From: Sohail Somani (sohail_at_[hidden])
Date: 2008-09-13 13:39:11


Emil Dotchevski wrote:
> On Sat, Sep 13, 2008 at 9:37 AM, Steven Watanabe <watanabesj_at_[hidden]> wrote:
>> 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<...> { ... };
>> }
>> }
>> }
>
> It would also break forward declarations found in user code, which are
> perhaps not officially supported but I've done my share of:
>
> namespace boost { template <class> class function; }

Ok, aliasing the boost namespace is out. That only leaves the
preprocessor unless I'm missing something. Which, unless Boost radically
changes the way headers are included or someone finds a conforming
workaround, is not possible...

Doh.

-- 
Sohail Somani
http://uint32t.blogspot.com

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