Boost logo

Boost :

Subject: [boost] [typeof][implementation]why not use decltype or conditional expr?
From: Larry Evans (cppljevans_at_[hidden])
Date: 2012-08-03 12:22:57

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.

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.


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