[SERVER-51691] Provide explicitly noexcept unique_function Created: 16/Oct/20 Updated: 06/Dec/22 Resolved: 09/Feb/21 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | None |
| Affects Version/s: | None |
| Fix Version/s: | None |
| Type: | Improvement | Priority: | Major - P3 |
| Reporter: | Benjamin Caimano (Inactive) | Assignee: | Backlog - Service Architecture |
| Resolution: | Won't Fix | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Assigned Teams: |
Service Arch
|
| Participants: |
| Description |
|
We can detect noexcept functions at compile time using the noexcept() operator. This means we can combine that with constexpr-if to make a version of unique_function that promises to always be noexcept. This is useful for situations like Future::getAsync(). |
| Comments |
| Comment by Ratika Gandhi [ 09/Feb/21 ] |
|
closing the ticket because the std::function API doesn't discriminate noexcept callables - from Team's Triage and Backlog grooming |