I\'m trying to eliminate an overload from an overload set if operator+= is missing.
operator+=
I know how to check if T+T is legal :
T+T
t
How about this? it's the method used before std::declval.
std::declval
template())> void foo(T a, T b, ...) { a += b; std::cout << "foo with +=" << std::endl; }