Quantcast
Channel: User HolyBlackCat - Stack Overflow
Viewing all articles
Browse latest Browse all 946

Comment by HolyBlackCat on constexpr function not compiling post gcc 10

$
0
0
Just replace constexpr int ans with int ans? Function params are never considered to be constexpr inside of the said function. (But its return value can't be constexpr if everything it does is possible to do at compile-time.)

Viewing all articles
Browse latest Browse all 946

Trending Articles