-
Notifications
You must be signed in to change notification settings - Fork 500
Closed
Labels
bugSomething isn't workingSomething isn't workinghelp wantedExtra attention is neededExtra attention is needed
Description
Hi I recently switched my project from using gcc
to clang
, and ran into this error:
_deps/magic_enum_content-src/include/magic_enum.hpp:116:18: error: constexpr variable 'prefix' must be initialized by a constant expression
constexpr auto prefix = name.find_last_of(" :,-)") + 1;
^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Clang version:
clang version 8.0.0 (Fedora 8.0.0-1.fc30)
Target: x86_64-unknown-linux-gnu
Gcc version:
g++ (GCC) 9.1.1 20190503 (Red Hat 9.1.1-1)
Flag list:
-Wall
-Wextra
-Werror
-Wnon-virtual-dtor
-Wold-style-cast
-Woverloaded-virtual
-Wsign-conversion
-Wconversion
-Wnull-dereference
-Wformat=2
-Wdouble-promotion
-fasynchronous-unwind-tables
-fstack-protector
-fstack-protector-strong
-fPIC
-pipe
-fsanitize=address
-fsanitize=undefined
-g
-fdiagnostics-color=always
-fno-omit-frame-pointer
Thank you for your work in this library, please let me know if I can provide more info.
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't workinghelp wantedExtra attention is neededExtra attention is needed