
13 Jan
2011
13 Jan
'11
12:31 p.m.
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.