|
Boost : |
Subject: Re: [boost] [type_traits] common_type and SFINAE
From: Evgeny Panasyuk (evgeny.panasyuk_at_[hidden])
Date: 2012-10-05 14:37:02
Hello,
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: http://ideone.com/Pdube
EqualityComparable<remove_refs<std::common_type<int,int>::type>::type>::value
returns 1 on Clang 3.2.
Note difference in printed types on GCC/Clang (rval ref).
Best Regards,
Evgeny
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk