tags:

views:

247

answers:

3

hi, very short question.

Is C++ typeof operator standard? de facto standard? which compilers do not provided it (besides Microsoft C++)?

+11  A: 

The typeof operator is nonstandard, but the upcoming C++ standard will have decltype.

dan04
A: 

There is no typeof operator in standard C++.

aJ
+5  A: 

As noted, C++0x has decltype. You can take a look at Boost.Typeof in the meantime.

isbadawi