Clarification of Function Templates

This is a discussion on Clarification of Function Templates within the C++ Programming forums, part of the General Programming Boards category; I'm coming from C and I'm picking up C++ pretty fast. I just have a small question about function templates. ...

Stroustroup prefers class ("it's shorter"), typename and class are both fine by the standard, although class is pretty much the only thing used in practice, and I've even heard stories of some compiler's not recognizing the typename syntax.

However, the arguments themselves don't need to be classes are typenames, they could be, say, constant integers at compile time, but they are usually classes.