https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96976
Vorfeed Canal <vorfeed.canal at gmail dot com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |vorfeed.canal at gmail dot com --- Comment #3 from Vorfeed Canal <vorfeed.canal at gmail dot com> --- Why couldn't you use std::enable_if in it's usual (for functions) place? Like this: template <typename K, typename... Args> auto f(K&& k, Args&&... args) -> std::enable_if_t<true, void> { } Works with all somewhat decent compilers: https://godbolt.org/z/rds3vM