
4 May
2004
4 May
'04
12:42 a.m.
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