-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
enum class is treated as int under gcc/clang #1424
Comments
Good catch. Looks like regression was introduced in #1286. A cast should be replaced with an implicit conversion. |
vitaut
added a commit
that referenced
this issue
Nov 27, 2019
vitaut
added a commit
that referenced
this issue
Nov 27, 2019
Should be fixed in 9a37d5f. |
Looks like there was a regression. |
The regression has been fixed in fd62fba. |
alandtse
added a commit
to alandtse/BaseObjectSwapper
that referenced
this issue
Jan 31, 2022
nlimpert
added a commit
to nlimpert/gazebo-rcll
that referenced
this issue
Apr 9, 2022
fmt versions >= 8.1.0 [does not support enum interpretation as int](fmtlib/fmt#1424) anymore which requires the definition of ostream::operator<< accordingly.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
https://godbolt.org/z/VZUd--
fmtlib v6.0.0:
fmtlib under clang/gcc formats
enum class
asint
when there is no overloadedoperator <<
for this type. MSVC emits errordon't know how to format the type
fmtlib v5.3.0:
all major compilers (clang, gcc, msvc) emit error
don't know how to format the type
Is there some regression between v5.3.0 and v6.0.0 related to this issue?
The text was updated successfully, but these errors were encountered: