Weird undefined symbols of static constants inside a struct/class
Definition needed The code you have provided is non-standard. While you can provide initializers for const static int members directly in the class, you still need to provide separate definitions. It is weird, a kind of unexpected, but you are expected to write it like this: #include <algorithm> struct Foo { static const int A … Read more