Unverified Commit 48c805ba authored by Christopher Di Bella's avatar Christopher Di Bella Committed by GitHub
Browse files

[libcxx] replaces SFINAE with requires-expressions in `bind_front` and `bind_back` (#68249)

The diagnostics for `enable_if_t` are extremely opaque:

```
error: no matching function for call to 'bind_front'
note: candidate template ignored: requirement 'integral_constant<bool, false>::value' was not satisfied
```

Using requires-expressions gives us a little more context:

```
error: no matching function for call to 'bind_front'
note: candidate template ignored: constraints not satisfied
note: because 'is_constructible_v<decay_t<T &>, T &>' evaluated to false
```

Pull request: #68249
parent 4a2a6a41
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment