Quantcast
Channel: virtual and constexpr before up to C++17 - Stack Overflow
Browsing latest articles
Browse All 2 View Live

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 Article



virtual 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
Browsing latest articles
Browse All 2 View Live




Latest Images