any.h
20 KB
-
Make any_internal::FastTypeId() and IdForType() constexpr · 89f1f531
This means removing all side effects from FastTypeId(). So rather than instantiate dummy_var in the first call to FastTypeId(), move this responsibility to the linker, and only read its address during execution - guaranteed to never change. This allows for more optimization opportunities, with more explicit uses of constexpr
Bronek Kozicki committed