Original Post
I have a vector class:
class cvector
{
protected:
float m_fvec[3];
public:
cvector(cvector& p_vec)
{
*this = p_vec; // Line 1
}
};
Program compiles well but when running it throws an exception in line 1. What''s wrong? Thanks.