https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90799
--- Comment #3 from Jonathan Wakely <redi at gcc dot gnu.org> --- Yes, that's standard as long as you provide the bool as an explicit template argument. Deducing it from the function type is the GCC extension.