Original Post
im getting this error
error: passing `const SVector' as `this' argument of `SVector SVector::operator-(const SVector&)' discards qualifiersin this code SVector operator-(const SVector& v)
{
return SVector(x-v.x,y-v.y,z-v.z);
}i know theres a simple solution but i dont know what it is thanks for any help