I have this code here in the private section of my struct:
static inline std::map<sv, u8> scoreboard {
{ "test1", 0 },
{ "test2", 1 },
// you get the point
};
This works completely fine, but I'm currently making a C++ library with the intention to work for C++11. But when i compile with that C++ standard, it issues a warning about "inline variables are a C++17 extension". So I tried removing the inline keyword, and now it gives me an error saying: "non-const static data member must be initialized out of line".
I have absolutely no idea what that means or what I should do to fix this. If anybody could give me a hand then that would be greatly appreciated.