C++ template type diff printing