TODO: Compile-time non-RTTI semi-unique type hashes (see include/types.hh for how to do this.)

Fortune for readpass's current commit: Curse − 凶
master
Avril 2 years ago
parent 4542eaff93
commit 09d29eba24
Signed by: flanchan
GPG Key ID: 284488987C31F630

@ -0,0 +1,3 @@
#pragma once
//TODO: A very basic typeid: Using the constexpr __PRETTY_FUNCTION__ array slicing trick we used for `exopt::util::type_name<T>()`, we can extract the unmangled, de-aliased type name T, we can then hash that at comptime, and give it static storage: Therefore __PRETTY_FUNCTION__ will not be given storage, but the resulting (far smaller, but still *almost* unique to each type name) hash, will be.
Loading…
Cancel
Save