-
I want to use |
Beta Was this translation helpful? Give feedback.
Replies: 5 comments 8 replies
-
Call a constructor that initialized it to have the values you want. |
Beta Was this translation helpful? Give feedback.
-
That's intentional, S s = default;
// ~~~~~~~ your error here
[NonDefault] // your attribute
struct S; |
Beta Was this translation helpful? Give feedback.
-
One "workaround" to slightly improve the situation is to declare explicit parameterless ctor on the struct and decorate it with |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
#146