C++ – struct vs. class [duplicate] April 30, 2023 by Tarik The other difference is that template<class T> ... is allowed, but template<struct T> ... is not.