Re: g_slist and const
- From: Hubert Figuiere <hfiguiere teaser fr>
 
- To: Asbjørn <asbgpe online no>
 
- Cc: gtk-devel-list gnome org
 
- Subject: Re: g_slist and const
 
- Date: Fri, 09 Mar 2007 18:23:56 -0500
 
Asbjørn wrote:
> I use C++/glib and i get this  strange looking function:
> 
> guint my_class::length (const GSList  *list)  /* const to protect my list */
> {
>    /* cast it to a non const pointer! */
>     return (g_slist_length  ((GSList *) list)); 
> }
> 
> So i want glib "C" to be more "C++" friendly    :)
Just use Glibmm.
Hub
[
Date Prev][
Date Next]   [
Thread Prev][
Thread Next]   
[
Thread Index]
[
Date Index]
[
Author Index]