Skip to content

Improve diagnostics with C++26 constexpr exceptions #3

Description

@mingxwa

Ported from microsoft/proxy#253

@mingxwa opened on Feb 17, 2025:

C++26 constexpr exceptions can also be considered here when the compiler implementations are widely available.

Relevant paper: https://wg21.link/p3557r0 (godbolt link: https://godbolt.org/z/Y1vPcn6Kr)

Adding constraints to the requires clause has the downside that when there are multiple overloads, the diagnostic messages are spammed with the "we tried this and that and none of them matched". constexpr exceptions don't have this issue.

Originally posted by @SidneyCogdill in #247

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions