C++/CLI static class and literal

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Why does the following code

public ref struct X abstract sealed {
literal int Y = 1;
};

give the error C4693: 'X' a sealed abstract class cannot have any instance
members 'Y'?

In the help it says that literal implies static.
 
Back
Top