Answer by Jan Schultke for virtual and constexpr before up to C++17
C++17In C++17, the above code would be ill-formed. What you have discovered is a compiler bug in GCC. The standard is very clear on this:The definition of a constexpr function shall satisfy the...
View Articlevirtual and constexpr before up to C++17
I'm confused about what I read about mixing virtual and constexpr for member functions.According to:constexpr and virtualCan virtual functions be constexpr?constexpr in cppreferenceup to C++17...
View Article
More Pages to Explore .....