问题
I need help in making member variable for a managed class of managed struct ... i tried to fix this but the error didn't disappear till i made that class non managed by removing "ref" . you may see this picture to see the class and the struct http://tinypic.com/view.php?pic=149mgie&s=8
public ref struct RectResult
{
int x;
int y;
int width;
int height;
};
public ref class GullotinePackedBin
{
private:
int width;
int height;
vector<RectResult> packedRectangles;
}
来源:https://stackoverflow.com/questions/30620421/managed-class-member-varible-from-managed-struct