28 Jun
2006
28 Jun
'06
11:22 p.m.
Igor, Igor Khavkine wrote:
Calling destructors is not a big deal. Do you mean anything else by "reference counts"?
No. As long as you work with objects of class ex, then carefully keeping track of allocated objects and explicit calls to the proper ex::~ex() destructors should keep your code both leak-free and running, I suppose. Clearly this is not the advertised way of using the library. But, well, since you asked...
I couldn't find any documented way to access the reference counting information that GiNaC keeps internally.
Oh, that's on purpose, because of its "internal" nature. ;-) Regards -richy. -- Richard B. Kreckel <http://www.ginac.de/~kreckel/>