As per cppreference documentation, which says (emphasis mine):
std::enable_if
can be used in many forms, including:
as an additional function argument (not applicable to operator overloads),
as a return type (not applicable to constructors and
destructors),as a class template or function template parameter.
Why can’t it be applicable to operator overloads when using enable_if
as an additional function argument?
1