2 // Origin: Neil Booth, from bug report #36
4 template <typename t> class vect;
5 template <typename t> vect<t> operator-( const vect<t>&, const vect<t>& );
13 vect( const vect<t>& v );
16 vect<t>& operator=( const vect<t>& v );
17 vect<t> operator-( void ) const;
18 friend vect<t> (::operator- <>)( const vect<t>&, const vect<t>& );
24 template <typename t> inline
30 template <typename t> inline
31 vect<t>::vect( const vect<t>& v )
36 template <typename t> inline
41 template <typename t> inline vect<t>&
42 vect<t>::operator=( const vect<t>& v )
48 template <typename t> inline vect<t>
49 vect<t>::operator-( void ) const
51 return vect<t>( -a_ );
54 template <typename t> inline vect<t>
55 operator-( const vect<t>& u, const vect<t>& v )
57 return vect<t>( u.a_ - v.a_ );
63 vect<double> a( 1.0 ), b( 0.0 );