S
sks_cpp
I need help with the following. I feel like I am pretty good at templates
but I can't figure out the following:
I have two templates:
template <int>
struct Mgmt
{
};
template <typename T>
struct MyType
{
};
===========================
Now I want to specialize MyType for Mgmt<int>; it's like a template within a
template but how to do it?
I tried many ways but I have syntax/compiler issues.
One of the examples I have tried:
template <>
struct MyType<Mgmt<int> >
{
};
Thanks for the help.
but I can't figure out the following:
I have two templates:
template <int>
struct Mgmt
{
};
template <typename T>
struct MyType
{
};
===========================
Now I want to specialize MyType for Mgmt<int>; it's like a template within a
template but how to do it?
I tried many ways but I have syntax/compiler issues.
One of the examples I have tried:
template <>
struct MyType<Mgmt<int> >
{
};
Thanks for the help.