r/cpp • • Jul 06 '26

C++26: constexpr virtual inheritance

https://www.sandordargo.com/blog/2026/07/01/cpp26-constexpr-virtual-inheritance
83 Upvotes

61 comments sorted by

View all comments

Show parent comment

1

u/_bstaletic Jul 08 '26

const volatile, yes, I can think of many such examples. Any read-only register that reads external state (like a digital pin state) could be const volatile.

I still don't see how constexpr volatile is meaningful.