I
Ian Lazarus
Hello,
Since value classes are not managed by the garbage collector and can't have
destructors but can have member data allocated on the C++ heap, how does
this data get destroyed? For example,
__value class vclass
{
public:
vclass()
: p(new int(0))
{
}
int* p; // how does this get destroyed?
};
Thanks
Since value classes are not managed by the garbage collector and can't have
destructors but can have member data allocated on the C++ heap, how does
this data get destroyed? For example,
__value class vclass
{
public:
vclass()
: p(new int(0))
{
}
int* p; // how does this get destroyed?
};
Thanks