I use the plural complex numbers library ( zkcm ) and want to compare some results with complex<double>.
At some point, I try to double check the memory of variables with sizeof(), but I get the same answer (32) no matter how much memory I allocate to variables; those. the following snippet prints 32 no matter what i use internally zkcm_set_default_prec():
zkcm_set_default_prec(128);
zkcm_class z;
cout << sizeof(z) << endl;
Is there any other way than sizeof()to get the variable memory size?
source
share