Why won’t this compile without a default constructor?
Clang gives this warning message: <source>:12:16: warning: parentheses were disambiguated as redundant parentheses around declaration of variable named ‘num’ [-Wvexing-parse] Boo(num); // No default constructor ^~~~~ This is a most-vexing parse issue. Because Boo is the name of a class type and num is not a type name, Boo(num); could be either the construction of … Read more