Jak przekazać parametry szablonu do CRTP?

W następującym kodzie:

template <typename T>
class CRTP
{
public:
};

template <int I, typename T>
class CRTPInt
{
public:
};

template <template <typename> class T>
class Derived : public T<Derived<T>>
{
public:
};

void main()
{
Derived<CRTP> foo;
Derived<CRTPInt<2>> foo2;
}

Jak napisać CRPTInt, abym mógł przekazać parametr, który będzie kontynuowany w definicji pochodnej?

Dzięki,

Jim

questionAnswers(1)

yourAnswerToTheQuestion