
27 Jul
2007
27 Jul
'07
7:49 p.m.
On Jul 27, 2007, at 3:10 PM, Arkadiy Vertleyb wrote:
"Doug Gregor" <dgregor@osl.iu.edu> wrote
I have updated the Boost Config library (on the CVS trunk) to contain BOOST_HAS_DECLTYPE, indicating the presence of decltype. A sufficiently-motivated person could certainly use this macro to give a simple implementation of decltype for C++0x compilers...
Could you ellaborate? It's not quite clear how to implement decltype on compilers that don't have it... which means on any compiler other than the latest gcc that you mentioned... or am I missing something?
I meant, why not have the typeof library use decltype when it is available? You can just predicate on BOOST_HAS_DECLTYPE, and of course test with the latest GCC 4.3. - Doug