Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

On GCC __PRETTY_FUNCTION__ it's not constexpr #35

Open
yuriv opened this issue Jun 5, 2020 · 1 comment
Open

On GCC __PRETTY_FUNCTION__ it's not constexpr #35

yuriv opened this issue Jun 5, 2020 · 1 comment

Comments

@yuriv
Copy link

yuriv commented Jun 5, 2020

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
Copy link

xakod commented May 26, 2021

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants