2 ms·
in c++20 you can use if constexpr(std::is_constant_evaluated()) { // hand coded implementation } else { // use builtin } but yes, it is a
by gpderetta 7y ago
in c++20 you can use
if constexpr(std::is_constant_evaluated()) {
// hand coded implementation
} else {
// use builtin
}
but yes, it is annoying.