Templates (typenameVS class) ?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • intOwnsVoid
    New Member
    • Jan 2008
    • 11

    Templates (typenameVS class) ?

    What's up folks..

    Need to know what's the difference when using Templates between:

    Code:
    template<class T>
    and

    Code:
    template<typename T>
  • weaknessforcats
    Recognized Expert Expert
    • Mar 2007
    • 9214

    #2
    Nothing.

    typename is used when the T doesn't refer to a class.

    Comment

    Working...