Question

very short question.

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

Was it helpful?

Solution

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

OTHER TIPS

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

There is no typeof operator in standard C++.

The typeof is an extension provided by GNU compiler primarily for C language: link to official gnu gcc page. So it isn`t a standard operator.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top