
21 Apr
2009
21 Apr
'09
4:58 p.m.
Achilleas Margaritis wrote:
I even wonder how gc_ptr<T>::gc_ptr::(T*) can be a safe constructor at all.
What do you mean exactly?
What if I do something like Foo foo; gc_ptr<Foo> bar = &foo; ?
A fairly terrible design, that has a lot of shortcomings, some of which where raised when talking of Boehm GC (basically, bad integration).
What shortcomings do you specifically refer to?
I didn't understand you were overloading operator new for the class, I thought it was a global overloading.