Layered zkcm and sizeof () library

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?

+3
source share
2 answers

, , :

int zkcm class::get_prec ( void ) const;

:

, , "this"

, . , - . , , , , - . sizeof ( ++) , .. .

+1

- sizeof(), (32) ,

sizeof() , ++ , . - , ( ), . sizeof() , .

+1

All Articles