Fix compilation issue with GCC

Can't manage to make it work with both GCC and clang.
Use std::enable_if_t helper