int addVertex(sbFace *face, sbVector *newVertex) { /** make sure its not a duplicate vertex **/ for (int i=0; i < face->cntVertices; i++) if (face->vertex.at(i) == *newVertex) return 1; /* its a duplicate */ face->cntVertices += 1; face->vertex.resize(sizeof(sbVector)*face->cntVertices); face->vertex.push_back(*newVertex); // ERROR - WTF? return 0; } 1>------ Build started: Project: Sandbox, Configuration: Debug Win32 ------ 1>Compiling... 1>world.cpp 1>E:\Program Files\Microsoft Visual Studio 8\VC\include\xutility(2726) : error C2679: binary '=' : no operator found which takes a right-hand operand of type 'const sbVector' (or there is no acceptable conversion) 1> d:\sandbox\sandbox\math.h(32): could be 'void sbVector::operator =(sbVector &)' 1> while trying to match the argument list '(sbVector, const sbVector)' 1> E:\Program Files\Microsoft Visual Studio 8\VC\include\xutility(2754) : see reference to function template instantiation 'void std::_Fill(_FwdIt,_FwdIt,const _Ty &)' being compiled 1> with 1> [ 1> _Ty=sbVector, 1> _FwdIt=sbVector * 1> ] 1> E:\Program Files\Microsoft Visual Studio 8\VC\include\vector(1187) : see reference to function template instantiation 'void std::fill(_FwdIt,_FwdIt,const _Ty &)' being compiled 1> with 1> [ 1> _Ty=sbVector, 1> _FwdIt=sbVector * 1> ] 1> E:\Program Files\Microsoft Visual Studio 8\VC\include\vector(1117) : while compiling class template member function 'void std::vector<_Ty>::_Insert_n(std::_Vector_iterator<_Ty,_Alloc>,unsigned int,const _Ty &)' 1> with 1> [ 1> _Ty=sbVector, 1> _Alloc=std::allocator 1> ] 1> d:\sandbox\sandbox\world.h(52) : see reference to class template instantiation 'std::vector<_Ty>' being compiled 1> with 1> [ 1> _Ty=sbVector 1> ] 1>Build log was saved at "file://d:\Sandbox\Sandbox\Debug\BuildLog.htm" 1>Sandbox - 1 error(s), 0 warning(s) ========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========