I don't think sizeof will not work if I have pointers to dinamically allocated members.
Lets look at this example:
class A {
char a[100];
}
Type: Posts; User: nysubmarine
I don't think sizeof will not work if I have pointers to dinamically allocated members.
Lets look at this example:
class A {
char a[100];
}
Hi, I have a very complex C++ object (with many class members and some of them are shared between different objects).
What is the best way to measure how much memory this object takes?
I tried...