Skip to content

Latest commit

 

History

History
23 lines (18 loc) · 675 Bytes

compiler-warning-level-2-c4099.md

File metadata and controls

23 lines (18 loc) · 675 Bytes
title description ms.date f1_keywords helpviewer_keywords
Compiler Warning (level 2) C4099
Learn more about: Compiler Warning (level 2) C4099
11/04/2016
C4099
C4099

Compiler Warning (level 2) C4099

'identifier': type name first seen using 'object_type1' now seen using 'object_type2'

An object declared as a structure is defined as a class, or an object declared as a class is defined as a structure. The compiler uses the type given in the definition.

Example

The following sample generates C4099.

// C4099.cpp
// compile with: /W2 /c
struct A;
class A {};   // C4099, use different identifier or use same object type