Re: boost::shared_ptr<T> and Gtk::TreeModelColumn<T>
- From: Murray Cumming <murrayc murrayc com>
- To: paul linuxaudiosystems com
- Cc: gtkmm-list gnome org
- Subject: Re: boost::shared_ptr<T> and Gtk::TreeModelColumn<T>
- Date: Mon, 18 Sep 2006 23:08:24 +0200
On Mon, 2006-09-18 at 16:26 -0400, Paul Davis wrote:
> any opinions on the best way to have:
>
> Gtk::TreeModelColumn<boost::shared_ptr<T> >
>
> at the moment, g++ appears to pick the void* partial specialization of
> TreeModelColumn,
Are you sure that there is void* partial specialization? What exactly
does it look like?
> which leads to problems later (glib complains that the
> object is not actually a G_TYPE_POINTER etc). i have considered
> implementing another partial specialization, but I am not sure it will
> solve the issue. any thoughts?
It works for RefPtr and for other random types. TreeModelColumn should
generate a custom gtype (via Glib::Value) to identify the type inside
TreeView so you shouldn't get that warning theoretically.
A little test case might help us figure it out. You could try it with
just a shared_ptr<int>, for instance.
--
Murray Cumming
murrayc murrayc com
www.murrayc.com
www.openismus.com
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]