Hi, I read this below of managed c++ and I has introduced objects on the stack? Does anyone know why (or wich advantages ) this? I think on the stack the manage of object should be more quick, but how many objects can take on it? I think not so many....What do you think, please?
value class classB {
private:
int value;
};
classeB^ bHeap = gcnew classeB(); //on managed heap
classeB bStack; //on managed stack
value class classB {
private:
int value;
};
classeB^ bHeap = gcnew classeB(); //on managed heap
classeB bStack; //on managed stack
To copy to clipboard, switch view to plain text mode
Bookmarks