S
Stormy
Can I define a template class as following
#pragma unmanaged
#include "mybaseclass.h"
#pragma managed
namespace mymanaged1
{
namespace mymanaged2
{
namespace myunmanaged
{
template<class T>
__nogc class A ublic mybase
{
};
}
}
}
#pragma managed
I got hundreds compile errors, two of them are:
C3151: '__nogc' cannot be applied to a template
C3151: '__gc' cannot be applied to a template
Can anybody tell me why and how to correct it. Thanks
#pragma unmanaged
#include "mybaseclass.h"
#pragma managed
namespace mymanaged1
{
namespace mymanaged2
{
namespace myunmanaged
{
template<class T>
__nogc class A ublic mybase
{
};
}
}
}
#pragma managed
I got hundreds compile errors, two of them are:
C3151: '__nogc' cannot be applied to a template
C3151: '__gc' cannot be applied to a template
Can anybody tell me why and how to correct it. Thanks