C++ – struct vs. class [duplicate]

The other difference is that

template<class T> ...

is allowed, but

template<struct T> ...

is not.

Leave a Comment