I have the following code:
template< const int D=1>
class Parent
{
class Nested: public OtherClass<D>
{
};
};
I get the following error when executing the code: "unnamed-parameter:" invalid template argument for OtherClass, expected compile-time constant expression. How can I make this work? I need to have access parameter to the template parameter D, because it's the input for another template. Hope anyone can help me. I searched a while in the Internet, but I don't know how to search for this particular problem. Thanks a lot in advance. Cheers
Aucun commentaire:
Enregistrer un commentaire