Compiler Error C3842
'function': 'const' and 'volatile' qualifiers on member functions of WinRT or managed types are not supported
const and volatile are not supported on member functions of Windows Runtime or managed types.
The following sample generates C3842:
// C3842a.cpp
// compile with: /clr /c
public ref struct A {
void f() const {} // C3842
void f() volatile {} // C3842
void f() {}
};
Athugasemdir
https://aka.ms/ContentUserFeedback.
Væntanlegt: Á árinu 2024 munum við hætta með GitHub-mál sem ábendingaleið fyrir efni og skipta því út fyrir nýtt ábendingakerfi. Frekari upplýsingar er að finna hér:Senda inn og skoða endurgjöf fyrir