Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Compiler Error C3189
Collapse the table of content
Expand the table of content

Compiler Error C3189

'typeid<type abstract declarator>': this syntax is no longer supported, use ::typeid instead

An obsolete form of typeid (C++ Component Extensions) was used, use the new form.

The following sample generates C3189:

// C3189.cpp
// compile with: /clr
int main() {
   System::Type^ t  = typeid<System::Object>;   // C3189
   System::Type^ t2  = System::Object::typeid;   // OK
}
Show:
© 2015 Microsoft