Boost logo

Boost :

Subject: Re: [boost] [type_traits] common_type fails when typeof is not used
From: John Maddock (boost.regex_at_[hidden])
Date: 2011-01-12 08:32:25


>The current common_type implementation doesn't works when
>BOOST_COMMON_TYPE_DONT_USE_TYPEOF is defined.
>This is needed on platforms that don't support Boost.Typeof correctly.
>
>It seems that the the implementation proposed by Jeffrey Hellrung has not
>been applied completly. I have attached a
> complementaty test on builting types that proves the current code does't
> works and also the implementation proposed by
> Jeffrey Hellrung to solve these issues some time ago.
>
>John, let me know if this works for you and if it can be included on trunk
>(I could do it myself if you prefer).

Fixed header applied to Trunk as of rev 68040.

I modified your tests somewhat and added updated test cases as well (with
one case to test when BOOST_COMMON_TYPE_DONT_USE_TYPEOF is defined).

Thanks! John.


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