Though this is asked at Compile-time constant id I want to ask here in the light of possibilities to get a unique id of an object class which can give insights on how the compiler works. As per my understanding, the symbols are unique binary names given to the identifiers, the functions names, the objects names, the variables which are translated to the addresses of the memory locations referred in expressions, the binary instructions during linking.
so the address of the static area of objects of a class can't be determined at compile time but however, we can determine a unique hash at both compile time and runtime. But typeid::hash_code() is not constexpr
. Then what is its constexpr
alternative?
I desperately need this unless there are reflections.