Boost logo

Boost :

Subject: Re: [boost] [type_traits] common_type and SFINAE
From: Evgeny Panasyuk (evgeny.panasyuk_at_[hidden])
Date: 2012-10-05 14:37:02


05.10.2012 22:08, Lorenzo Caminiti wrote:
> One a separate note, why the following SFINAE impl of
> EqualityComparable returns 0 on std::common_type<int, int>::type?

gcc-4.5.1 returns 1.
Try this test on Clang:

returns 1 on Clang 3.2.
Note difference in printed types on GCC/Clang (rval ref).

Best Regards,

Boost list run by bdawes at, gregod at, cpdaniel at, john at