MIPP icon indicating copy to clipboard operation
MIPP copied to clipboard

Request: Compile Time failure instead of Runtime failure

Open Stefl1504 opened this issue 4 years ago • 0 comments

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

Stefl1504 avatar Aug 09 '21 09:08 Stefl1504