constexpr absl::Duration operators #1382
bogdan-lab
started this conversation in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Why
absl::Duration
arithmetic operators are notconstexpr
?For example, I find it a bit confusing that if I want to create some "complex" duration value at compile time, for better readability I need to do this:
But I cannot do this:
Beta Was this translation helpful? Give feedback.
All reactions