Default args in template

Posted by Knowing me knowing you on Stack Overflow See other posts from Stack Overflow or by Knowing me knowing you
Published on 2010-05-12T18:38:40Z Indexed on 2010/05/12 18:44 UTC
Read the original article Hit count: 167

Filed under:
|

Is it possible to have something like this:

template<class T = unsigned = 64>
class X
{
};

Which basically says that if nothing is specified then unsigned should be the type and its value should be 64.

© Stack Overflow or respective owner

Related posts about c++

Related posts about templates