Re: The use of RefPtr



On 03/07/2009 02:11 AM, Eddie Carle wrote:
  I want my TreeModel freed
when it goes out of scope.

Why do you think there is a Glib::RefPtr<TreeModel> ? It is not just for the show. It will unref when the Glib::RefPtr<> is destroyed, therefor when you leave the scope.

I still don't understand WHY you want to make it more complicated. The allocation policy using Glib::RefPtr<> is actually the much simplier part of Gtkmm.


Hub


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]