For some reason I keep getting
error C3861: '__typeof': identifier not found
when I compile my program!
I’m including the following libraries:
<iostream>
<stdlib>
<stdio>
Any ideas?
thanks
Edit:
More example
User.h
class User{}
main.cpp
void f(User* p)
{
.
.
.
__typeof(p) ...
.
.
.
.
}
http://msdn.microsoft.com/en-us/library/x2xw8750%28VS.71%29.aspx
__typeofonly exists for /clr:oldSyntax. Are you trying to use Managed extensions to C++ or are you expecting__typeofto work like C++0x’sdecltype? If so, if you are using VS 2010 you can usedecltype.