Issue 86043
Summary [libc++] The call operator of std::mem_fn(pm) isn't SFINAE-friendly and doesn't propagate noexcept
Labels libc++
Assignees
Reporter pdimov
    According to https://eel.is/c++draft/func.memfn and https://eel.is/c++draft/func.require#5, `std::mem_fn(pm)(args...)` should be _expression-equivalent_ to `std::invoke(pm, args...)`, which implies that it should be constrained in the same way and be `noexcept` in the same way. But it isn't. E.g. https://godbolt.org/z/qf6PccY3n and https://godbolt.org/z/fjMqKfeex.
_______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to