コンパイラの警告 (レベル 1) C4441
'cc1' の呼び出し規則は無視されます。代わりに 'cc2' が使用されます
マネージド ユーザー定義型およびグローバル関数ジェネリックのメンバー関数では、__clrcall 呼び出し規則を使用する必要があります。 コンパイラは __clrcall
を使用しました。
例
次の例では 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
};