Hi all,
I want to inherit from the engine classes i am using, and i have a problem.. some of the operators return by value in the base classes of the engine.. lets say i have a vector in the engine.
class EngineVector
{
EngineVector operator * (EngineVector& other) const;
}
and i have this one
class MyVectorWrapper : public EngineVector
{
MyVectorWrapper operator * (MyVectorWrapper& other) const;
}
What would be the MyVectorWrapper operator's Body, if i want to use the EngineVector operator in it?
is there any templates based solution to this? something like..
template <class T>
class MyVectorWrapper
{
MyVectorWrapper operator * (MyVectorWrapper& other) const;
}
// and when i want to use it .
MyVectorWrapper<EngineVector> vector;
the basic problem that i have is wrapping the things in the engine with my classes.. so that the end user who use the wrapper, don't need to know and use the engine classes. and use the generic interface that i provide.. any comments on wrapping would be greatly appriciated.
..
waZim