Boost logo

Boost :

From: Arkadiy Vertleyb (vertleyb_at_[hidden])
Date: 2007-07-27 16:16:46

"Doug Gregor" <dgregor_at_[hidden]> 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 :-(


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