SyntaxFix
Write A Post
Hire A Developer
Questions
An explicit default initialization can help:
struct foo { bool a {}; bool b {}; bool c {}; } bar;
Behavior bool a {} is same as bool b = bool(); and return false.
bool a {}
bool b = bool();
false