Closed tom-huntington closed 1 year ago
It seems that ranges::predicate
wasn't working properly prior to v19.36 https://godbolt.org/z/7qcs9Yrx3
https://stackoverflow.com/a/76423911/11998382
It's fixed now. So perhaps this was undefined behaviour all along.
In v19.35 you could pass an invocable to
ranges::views::filter
that returnedstd::optional
. In v19.36 you cant:https://godbolt.org/z/jcfjE3var