Skip to content
Snippets Groups Projects
Commit 89f1f531 authored by Bronek Kozicki's avatar Bronek Kozicki
Browse files

Make any_internal::FastTypeId() and IdForType() constexpr

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
parent 962e9931
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment