Original Post
Hi!
I''m writing a ifstream derived class and making specializations for the >> operators.
There are Vectors and Color too...
My problem is:
error C2679: binary ''>>'' : no operator found which takes a right-hand operand of type ''ORC::TimeKey'' (or there is no acceptable conversion)
with
[
T=ORC::Color
]
and another problem is:
c:\Program\Microsoft Visual Studio .NET\Vc7\include\xutility(1130): error C2679: binary ''='' : no operator found which takes a right-hand operand of type ''ORC::TimeKey'' (or there is no acceptable conversion)
with
[
T=ORC::Color
]
Note: I get 2 more errors of both, one with T=float and the other T=Vector3f.
I just don''t get it... I have a Color::operator=(const Color&) and I have blockreader::operator>>(Color&)
Somebody please help me! thanx...
"No lies of sugar can sweeten the sournes of reality"
}+TITANIUM+{ A.K.A. DXnewbie[onMIRC]
class blockreader : public ifstream
{
...
template <class T>
blockreader &blockreader::operator >>(T &t)
template <class T>
blockreader &operator >>( TimeKey<T>& key );
template <class T, int C, int R>
blockreader &operator >>(const Matrix<T,C,R>& m);
template <class T>
blockreader &operator >>(const Matrix3x3<T>& m);
template <class T>
blockreader &operator >>(const Matrix4x4<T>& m);
...
};