-
Notifications
You must be signed in to change notification settings - Fork 4.7k
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
cannot bind packed field/cannot bind bitfield #1926
Comments
According to the so answer it is a bug in gcc? |
Hi, I have the same issue. Had to back down spdlog to 1.8.0 |
It is not a bug, GCC plays it safe and disallows this operation. |
I just updated the version of spdlog I'm using and ran into this issue. This appears to be a result of the change to using perfect forwarding of args: 2357236. This change makes it so args are no longer guaranteed passed in as const and any temporaries that are created in a function call must be const qualified. (this is what the compiler is complaining about- a temporary is trying to be passed as non-const.) so this got broken:
What was the motivation to move to use perfect forwarding? |
The primary motivation was to fix #1725 |
Same here. Upgraded to 1.8.5 and could not compile. Would love to get back the old behavior. |
Required a workaround for formatting a bitfield, see gabime/spdlog#1926
* Update Janus, libsrtp, catch2, spdlog, fmt versions Spdlog update required a workaround for formatting a bitfield, see gabime/spdlog#1926 * Wrap cpp-httplib dependency
Hi,
Since #1726 I cannot log variables that have attribute packed. Same goes for bitfields.
See https://stackoverflow.com/questions/27491432/why-cant-i-return-a-reference-to-a-packed-field. So with perfect forwarding a reference to the variable is needed. But this is not possible if the struct is packed or if it is a bitfield.
Thanks for a great logging library!
The text was updated successfully, but these errors were encountered: