R
Rick
Hi,
I wrote a few classes recently and am writing a small GC implementation
for C++. I will be implementing my own gc_ptr type maintain a list where
I'll store pointers to allocated memory. I was wondering if it is
possible to identify objects during runtime via RTTI because I don't
want to be doing:
gc_ptr<int>::doGC();
gc_ptr<double>::doGC();
for doubles and ints. I want a simple call such as:
myRuntime::doGC();
Is this possible via RTTI? Thanks
Rick
I wrote a few classes recently and am writing a small GC implementation
for C++. I will be implementing my own gc_ptr type maintain a list where
I'll store pointers to allocated memory. I was wondering if it is
possible to identify objects during runtime via RTTI because I don't
want to be doing:
gc_ptr<int>::doGC();
gc_ptr<double>::doGC();
for doubles and ints. I want a simple call such as:
myRuntime::doGC();
Is this possible via RTTI? Thanks
Rick