You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
However, the explicit instantiations do not seem to work (as I would expect them to).
Because whenever vector4.h gets included, glm automatically instantiates vec<4,T> in every combination.
I would expect my compiler to generate only one instantiation for the variations I specified in vector4.cpp.
I have a header file
vector4.h
which contains the following:I also have a corresponding
vector4.cpp
:However, the explicit instantiations do not seem to work (as I would expect them to).
Because whenever
vector4.h
gets included, glm automatically instantiates vec<4,T> in every combination.I would expect my compiler to generate only one instantiation for the variations I specified in
vector4.cpp
.main.cpp.json
Here is a trace of a file.
As you can see, the compiler (clang-cl in my case) instantiates all vector4's:
Is there a way to avoid this?
These are my glm compile defines:
The text was updated successfully, but these errors were encountered: