The following code:
ref class A
{
private:
int% referenceToAnInt;
};
causes the following error in Visual Studio:
error C3160: 'int%': the data member of the managed class cannot have this type
I thought tracking links were a managed thing, so why can't they be members of a managed class? Also: How did I correctly save the value type reference in C ++ / CLI?
Boris source
share