BlackToppStudios / Mezz_Foundation

Foundational Data types that enforce no opinions on how to build games and provide many facilities that complex games need. This largely avoids graphics and physics, but provides tools like the SortedVector, CountedPtr and HashedString classes.
GNU General Public License v3.0
3 stars 0 forks source link

Make is_static_any variables inline #34

Open MakoEnergy opened 6 years ago

MakoEnergy commented 6 years ago

This is currently not possible because we are compiling for C++14, which does not support inline variables. When we upgrade to C++17 we should make is_static_any_v and is_static_any_decayed_v inline.

MakoEnergy commented 5 years ago

After attempting to make this change, it works on all platforms except Clang on Ubuntu using the official clang package. This appears to be an issue with the compiler itself as a similar version of clang on godbolt.org worked fine. Going to shelve inline variables for now, hoping that future releases will fix this without any intervention from us.