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



>  class X
>  {
>    template <typename T> struct Y;   // line 3
>  };
>
>  template <> struct X::Y<int>
>  {                                   // line 7
>  };
>
>  int main()
>  {
>  }
>
>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?



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