I am using the multiprecision complex number library (zkcm) and want to compare some results using complex<double>.
At one point I try to double check the memory of the variables using sizeof() but I get the same answer (32) no matter how big a memory I allocate the variables to; i.e. the following snippet prints 32 no matter what I use inside zkcm_set_default_prec():
zkcm_set_default_prec(128);
zkcm_class z;
cout << sizeof(z) << endl;
Is there another way than sizeof() to get the memory size of a variable?