This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c++/17152] Useless error message


------- Additional Comments From paavola at skycomputers dot com  2004-08-23 13:58 -------
I neglected to include the source code:

template <int N, class T>
 class vec
 {
    public:
  int size() const { return N; }

  vec(const T & t = T())
  { for(int i = 0; i < N; i++) v[i] = t; }
  vec(const T * tp)
  { for(int i = 0; i < N; i++) v[i] = tp[i]; }

  friend bool operator == <> ( const vec<N,T> &v1, const vec<N,T> &v2 );
  friend bool operator != <> ( const vec<N,T> &v1, const vec<N,T> &v2 );

  T v[N];
 };


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=17152


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]