
27 Jul
2007
27 Jul
'07
8:16 p.m.
"Doug Gregor" <dgregor@osl.iu.edu> wrote
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.
I think BOOST_TYPEOF should continue returning consistent result across the compilers. For this, if we used decltype, we would need to remove top-level consts and refs... which doesn't seem to make a lot of sense... Does GCC 4.3 still have typeof? If a person needs the decltype functionality, he could use it on newer compilers, but would need to specifically address portability issues (if needed) in a non-trivial way, since it doesn't look possible to correctly emulate decltype :-( Regards, Arkadiy