This problem is not mine ... and it compiles :)
Actually, my classes inherit Glib::Object (I didn't precised it thought :))


Robert Caryl wrote:
> 
> <snip>
> 
>> Glib::RefPtr refB = Glib::RefPtr(new B());
>> Glib::RefPtr  refA = Glib::RefPtr (refB);
> 
> <snip>
> 
> If the foregoing actually appears in your code, I wonder how it
> successfully compiles since you didn't define a template for
> Glib::RefPtr<T>.
> 
> It should be written:
> 
> Glib::RefPtr refB = B::create();
> Glib::RefPtr  refA = refB;
> 
> The foregoing assumes that class B has a create function.
> 
> Bob Caryl
> _______________________________________________
> gtkmm-list mailing list
> [email protected]
> http://mail.gnome.org/mailman/listinfo/gtkmm-list
> 
> 

-- 
View this message in context: 
http://www.nabble.com/RefPtr-and-inheritance-tf2401125.html#a6699535
Sent from the Gtkmm mailing list archive at Nabble.com.

_______________________________________________
gtkmm-list mailing list
[email protected]
http://mail.gnome.org/mailman/listinfo/gtkmm-list

Reply via email to