Re: [gtkmm] gcc-3.3 and gtkmm-2.2.1



On Sunday 18 May 2003 4:16 pm, Ole Laursen wrote:
> Paul Davis <paul linuxaudiosystems com> writes:
> > >It appears GCC 3.3 doesn't like the specialisation:
> > >
> > >  $ g++ -o test test.c++ -Wall
> > >  test.c++:3: error: `template<class T> struct X::Y' is private
> > >  test.c++:7: error: within this context
> >
> > did you consider declaring class X as struct X?
>
> Ehrm, what do you mean by that statement? If class X is declared as a
> struct, obviously the problem won't be there anymore (and it isn't
> there if a public: is placed in front of it either). But that doesn't
> solve the problem with gtkmm and orbitcpp.

This is getting beyond me, but it seems to my untutored eye (after looking at 
ustring.h) that gcc-3.3 doesn't like nested class declarations which then 
have templated definitions.  It doesn't seem to realise that the definitions 
are defining specialisations of the previously declared nested class.  I have 
no idea what the standard says about the issue.

Chris.




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