Compiler Error C3803
'property': property has a type that is incompatible with one of its accessors 'accessor'
The type of a property defined with property does not match the return type for one of its accessor functions.
The following sample generates C3803:
// C3803.cpp
struct A
{
__declspec(property(get=GetIt)) int i;
char GetIt()
{
return 0;
}
/*
// try the following definition instead
int GetIt()
{
return 0;
}
*/
}; // C3803
int main()
{
}
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