diff options
author | Chris Robinson <[email protected]> | 2022-02-22 03:03:44 -0800 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2022-02-22 03:03:44 -0800 |
commit | d06ed618d356a713292de95f0ab2c6017c305e17 (patch) | |
tree | ad84c64155c782cd13158db020d623b3ea5f370b /common/opthelpers.h | |
parent | 72ddb6351e1102b104ab45bdbb3c7cfb9cb49d08 (diff) |
Avoid using an if_constexpr macro
It doesn't actually use if constexpr, and compilers are smart enough to
optimize. Some functions can use templates instead.
Diffstat (limited to 'common/opthelpers.h')
-rw-r--r-- | common/opthelpers.h | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/common/opthelpers.h b/common/opthelpers.h index 0b8b8210..cb901a63 100644 --- a/common/opthelpers.h +++ b/common/opthelpers.h @@ -46,10 +46,4 @@ constexpr bool unlikely(T&& expr) noexcept { return static_cast<bool>(expr); } #define ASSUME(x) ((void)0) #endif -#if __cplusplus >= 201703L || defined(__cpp_if_constexpr) -#define if_constexpr if constexpr -#else -#define if_constexpr if -#endif - #endif /* OPTHELPERS_H */ |