actually your solution doesn't seem to work all that well...but I might have found something working for me: adding a constructor vec3d( const vec ) and returning vec3d( this->vec<TYPE>::operator*(right))
Actual vec3d has some member functions allowing some "math" tricks a vector with undefined length can't be used for (in my case). So vec3d is basically a additional member-function kit. Their relationship is that vec is the base of vec3d. It's the data-model, just vec3d has some "known" attributes. What do you mean I don't use it correctly? Can you explain this a bit more in detail? (Actual the real issue here is that I want to learn how inheritance works, I - probably - could use plain vec for all my members - but I wanna understand it!)
mhm...I'm beginning to fear that this might not be the problem...when tested in a separate program my class vec3d works as intended and all complaining operators do as well...mhm...*searching for real problem*
IN FACT the error arose from lacking const-correctness... :(
ANYWAY: (AGAIN) Having some hard time here getting the grips with C++ (programmed pretty much plain C before...) So thanks for answers and all the best. Good tutorials on inheritance and such are GREATLY APPRECIATED! (I don't mean those vanilla ( 08/15 for my German friends) ones - I read some of them, but they don't tell you the interesting stuff...)