Dela via


Kompilatorvarning (nivå 1) C4441

anropskonventionen för "cc1" ignoreras; "cc2" används istället

Anmärkningar

Medlemsfunktioner i hanterade användardefinierade typer och globala funktionsgenerella funktioner måste använda __clrcall-anropskonventionen. Kompilatorn använde __clrcall.

Example

I följande exempel genereras C4441.

// C4441.cpp
// compile with: /clr /W1 /c
generic <class ItemType>
void __cdecl Test(ItemType item) {}   // C4441
// try the following line instead
// void Test(ItemType item) {}

ref struct MyStruct {
   void __cdecl Test(){}   // C4441
   void Test2(){}   // OK
};