Subject: Re: [boost] [typeof][implementation]why not use decltype or conditional expr?
From: Steven Watanabe (watanabesj_at_[hidden])
Date: 2012-08-03 14:46:31
On 08/03/2012 09:22 AM, Larry Evans wrote:
> Why couldn't the BOOST_TYPEOF macro be defined
> to simply use the new keyword, decltype, if
> it's available? I assume the macro, BOOST_HAS_DECLTYPE,
> indicates whether it is available.
I assume Boost.Typeof will eventually
be updated to use decltype.
> And if decltype not available, why couldn't it use the
> conditional expression method described here:
> I would think that would be simpler and more portable.
I don't see how it's possible to implement
BOOST_TYPEOF this way.
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk