Closed hirdrac closed 3 years ago
Sorry about that - go ahead and revert that bit. Here's what clang outputs if you're curious (just a warning):
clang++ -Wall -Wextra -Wno-switch -Wno-sign-compare -Wno-unused-variable -Wno-uninitialized -Wno-unused-function -Wno-unused-parameter -O3 -std=gnu++20 -MMD -MP -DCATACLYSM -c bionics.cpp -o obj_cataclysm/bionics.o
In file included from bionics.cpp:3:
In file included from ./game.h:4:
In file included from ./reality_bubble.hpp:4:
./map.h:229:43: warning: instantiation of variable 'cataclysm::discard<std::vector
Ok; have pushed relevant counterchanges. (The warning corresponds to a problem that doesn't materially affect our use case).
Since default-initialization is (should be) workable and I'd rather not have tight coupling, I kept the inline keyword but locked down the explicit template instantiations behind a preprocessor define that is undefined.
Note that not all clang issues found are fixed by these changes and the Makefile has not been changed from gcc.