Use `enable_if` to control what types can instantiate a template
Using a `static_assert(false, ...)` expression in the `else` block of a `if constexpr` statement doesn't work. The `else` block is not protected by the `constexpr`-ness of the `if`s, so it is always compiled. Consequently it will always fail to compile. Signed-off-by: Chris Burel <burelc@amazon.com>monroegm-disable-blank-issue-2
parent
20e268930c
commit
86aa5093ec
Loading…
Reference in New Issue