|
Boost : |
Subject: Re: [boost] [type_traits] common_type fails when typeof is not used
From: John Maddock (boost.regex_at_[hidden])
Date: 2011-01-13 07:31:43
>> 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.
>
> Thanks John.
>
> There is yet an error on Sun compiler that is not really related to
> common_type code, but to the test code itself.
It's a bug in common_type.hpp (or the compiler), since
common_type<C1C2, C1>::type evaluates to C1C2& and not C1C2.
The same code compiled with msvc does the right thing though...
Any ideas?
John.
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk