Need traits class that defines class template for template template parameter

Need traits class that defines class template for template template parameter

Post by Greg Herli » Wed, 07 Nov 2007 05:50:38


On 11/5/07 10:51 AM, in article
XXXX@XXXXX.COM , "Vidar Hasfjord"




But "Tr<S>::Type" does not refer to a type - it refers to a template.
Therefore "typename" is not the correct qualifier to use in this context,
whereas "template" is:

template <unsigned S> void func()
{
B<int, Tr<S>::template Type> b;
b.print();
}

Greg


--
[ See http://www.yqcomputer.com/ ]
[ comp.lang.c++.moderated. First time posters: Do this! ]