What is a C++11 extension [-Wc++11-extensions]
I need some help understanding where this error is occurring: warning: in-class initialization of non-static data member is a C++11 extension [-Wc++11-extensions] This is the section of the code that it is coming from: typedef struct Hand { bool straight = false; bool flush = false; bool four = false; bool three = false; int pairs = 0; } Hand; That's not an error, it's a warning. It tells you that you're only allowed to initialize non-static members of a struct / class starting with the C++11 standard (so called because it was published in 2011). Before that, you weren't officially allowed to