27 May
2015
27 May
'15
1:53 p.m.
2015-05-23 18:33 GMT+02:00 Steven Watanabe
AMDG
On 05/23/2015 09:44 AM, Peter Dimov wrote:
Why doesn't Typeof use decltype on VS 2013?
Probably because Typeof hasn't had a maintainer since before decltype. It doesn't appear to use decltype for any compiler.
I don't think it can. The semantics of BOOST_TYPEOF is that of: auto x = expr; The semantics of decltype are quire different. For instance, auto and BOOST_TYPEOF and GCC's __typeof__ never deduce references -- always values. decltype on the other hand can deduce references. I guess BOOST_TYPEOF could be implemented with decltype(auto). Regards, &rzej