|
|
|
|
|
by Dylan16807
1120 days ago
|
|
> Mangling is mentioned in the standard. Forgive me, but can you be clearer than "mentioned"? Is the mangling required to contain template parameters for return types? > In this case though the underlying reason is that its part of the type (system) not because of the mangle specifically. I'm not sure. The compiler knows it will always be the same type, so under many uses of this function I could easily imagine a compiler that doesn't actually fill in .value until runtime. |
|
The mangling will contain template parameters, as you can have:
foo.hpp
foo.cpp bar.cpp and the right function has to be found. demo: https://gcc.godbolt.org/z/rMjYoEzaK