Boost logo

Boost :

From: Giovanni Bajo (giovannibajo_at_[hidden])
Date: 2004-05-03 19:42:53


David Abrahams wrote:

> FYI, to take advantage of GCC's buggy __typeof__,
> you may have to accept some limitations on its type
> argument. I think it has problems
> with references or something.

Actually, GCC's typeof implements a reference-dropping semantic. In other
words, typeof(int&) is int for GCC. The decltype paper has some insights about
this. I thought the rest of the problems in using it was just ICEs here and
there, which could be cured if there was enough interest.

-- 
Giovanni Bajo

Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk