On GCC __PRETTY_FUNCTION__ it's not constexpr
yuriv opened this issue · 1 comments
yuriv commented
Due topic on GCC code works runtime not compile time, e.g.
static_assert(ctti::type_id() != ctti::type_id("hello"), "compile-time type-id comparison");
yields compile error. Be careful.
xakod commented
Due topic on GCC code works runtime not compile time, e.g.
static_assert(ctti::type_id() != ctti::type_id("hello"), "compile-time type-id comparison");
yields compile error. Be careful.
Be careful again, bug was fixed here https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66639
gcc-mirror/gcc@ddd0d18
So it works on gcc 9.1.0 and above