Sizeof

I would like to ask if ROOT has operator sizeof or something simillar. When I use sizeof my code doesn’t work in ROOT but in g++ it works.

Hi,
mine does: root [0] sizeof(TObject) (const int)12 Please send us a running macro so we can reproduce your problem.
Axel.

Thank you,
I have already find out it, normally in C++ the sizeof is used whithout bracket ().

Hi,

[quote=“ruza”]normally in C++ the sizeof is used whithout bracket ().[/quote]No. See the standard ch 5.3.3.
Axel.