Re: Using g_signal_connect in class

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

 



On Sat, 19 Jul 2008 13:42:58 +0200
Jean Bréfort <jean.brefort@xxxxxxxxxxxxxx> wrote:
> Le samedi 19 juillet 2008 à 12:29 +0100, Chris Vine a écrit :
> > This will work with gcc/g++ but it is not standard conforming, as
> > static class functions do not have C linkage, and the C++ standard
> > states that functions otherwise identical with C++ and C linkage are
> > different types.
> > 
> > To be standard conforming you should use a friend function (if it
> > needs access to private data) declared extern "C".
> 
> The extern "C" declaration is not needed.

Are you saying there is a misprint in the C++ standard, or that
with the particular compiler you use it is not necessary?  If the
latter, what part of my post do you disagree with?

Chris

_______________________________________________
gtk-list mailing list
gtk-list@xxxxxxxxx
http://mail.gnome.org/mailman/listinfo/gtk-list


[Index of Archives]     [Touch Screen Library]     [GIMP Users]     [Gnome]     [KDE]     [Yosemite News]     [Steve's Art]

  Powered by Linux