Skip to content

Request: Compile Time failure instead of Runtime failure #33

@Stefl1504

Description

@Stefl1504

To make it easier to capture misconfiguration or lacking support of certain instrinsics, I would like to suggest the following change:

instead of throwing std::runtime_error when using unsupported intrinsics use static_assert

rough example:
https://godbolt.org/z/W6GPdGEhc

possible downside: it is not possible to provide a custom error message as static_assert requires a string literal

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions