Re: API Freeze

Murray Cumming <[email protected]> Mon, 10 Jan 2005 09:32:41 +0100
Newsgroups gmane.comp.gnome.gnomemm
Message-ID <[email protected]>
On Sun, 2005-01-09 at 21:14 -0600, Bryan Forbes wrote:
> Hey,
>     I just tried using the API I put in for gconfmm (setting lists) and
> it doesn't seem to work.  I get this error on compile:
> 
> combo-history.cc: In member function `void
>    Coaster::Widgets::ComboHistory::save_history()':
> combo-history.cc:80: error: call of overloaded `set(const
> Glib::ustring&,
>    std::vector<Glib::ustring, std::allocator<Glib::ustring> >&)' is
> ambiguous

The compiler doesn't know what set() method to use. It's probably
confused because it already has to do an explicit conversion from the
vector to the SListHandle. You'll probably need to rename the set
methods to something like set_list_of_ints(), set_list_of_bools(), etc.

Please go ahead and do that in cvs.

> /opt/gnome210/include/gconfmm-2.6/gconfmm/client.h:517: error:
> candidates are:
>    void Gnome::Conf::Client::set(const Glib::ustring&, const
>    Gnome::Conf::SListHandle_ValueInt&)
> /opt/gnome210/include/gconfmm-2.6/gconfmm/client.h:518: error:
>    void Gnome::Conf::Client::set(const Glib::ustring&, const
>    Gnome::Conf::SListHandle_ValueBool&)
> /opt/gnome210/include/gconfmm-2.6/gconfmm/client.h:519: error:
>    void Gnome::Conf::Client::set(const Glib::ustring&, const
>    Gnome::Conf::SListHandle_ValueFloat&)
> /opt/gnome210/include/gconfmm-2.6/gconfmm/client.h:520: error:
>    void Gnome::Conf::Client::set(const Glib::ustring&, const
>    Gnome::Conf::SListHandle_ValueSchema&)
> /opt/gnome210/include/gconfmm-2.6/gconfmm/client.h:521: error:
>    void Gnome::Conf::Client::set(const Glib::ustring&, const
>    Gnome::Conf::SListHandle_ValueString&)
> make[1]: *** [combo-history.lo] Error 1
> 
> Did I define the functions wrong?  I'm not sure how SListHandle works so
> I'm probably doing this wrong.  Thanks in advance!

-- 
Murray Cumming
[email protected]
www.murrayc.com
www.openismus.com