V
Vedo
ref struct XXX abstract sealed
{
literal int A = 5;
};
The definition above gives me the compiler warning "C4693: a sealed abstract
class cannot have any instance members 'A'". The equivalent definition is
perfectly legal in other CLR languages. For example in C#;
static class XXX
{
const int A = 5;
}
compiles without any error. Is there a way to specify CLR compatible consts
in a static class in C++/CLI?
{
literal int A = 5;
};
The definition above gives me the compiler warning "C4693: a sealed abstract
class cannot have any instance members 'A'". The equivalent definition is
perfectly legal in other CLR languages. For example in C#;
static class XXX
{
const int A = 5;
}
compiles without any error. Is there a way to specify CLR compatible consts
in a static class in C++/CLI?