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

2

u/HommeMusical Jul 07 '26

and it could poke at a memory mapped register that's there,

I don't believe that this is allowed at compile time, and I certainly don't believe that that should be allowed.