[try Beta version]
Not logged in

 
template<class T> vs template<typeName T>

Mar 21, 2011 at 12:06am
what's their difference, if any? when will i use one instead of the other?
Mar 21, 2011 at 12:27am
The 'N' is not to be capitalized. And there is no difference. Not even a bit. typename was just included to make clear that primary datatypes may also be used, because the class keyword is associated with objects and stuff. But the semantic difference is zero.
Mar 21, 2011 at 12:38am
thanks for the clarification :)
Topic archived. No new replies allowed.