description | title | ms.date | f1_keywords | helpviewer_keywords | ms.assetid | ||
---|---|---|---|---|---|---|---|
Learn more about: Compiler Warning (level 1) C4183 |
Compiler Warning (level 1) C4183 |
11/04/2016 |
|
|
dc48312c-4b34-44dd-80ff-eb5f11d5ca47 |
'identifier': missing return type; assumed to be a member function returning 'int'
The inline definition of a member function in a class or a structure does not have a return type. This member function is assumed to have a default return type of int
.
The following sample generates C4183:
// C4183.cpp
// compile with: /W1 /c
#pragma warning(disable : 4430)
class MyClass1;
class MyClass2 {
MyClass1() {}; // C4183
};