i´ve been having this problem with a assignment operator in a class, and i´ve been searching around and could not find a strait answer...maybe someone can help me out, and explain the reason why this problem exists....
Operator new allocates space for a new STriple and returns its address, which is of type STriple * (STriple pointer). vertexData is a dynamic array of STriples, not STriple pointers. Your compiler complained because you tried to assign a STriple pointer to a STriple object. If you remove the new keyword from that line, what happens is that a temporary, unnamed STriple object is created, used as an argument for your assignment operator, and then destroyed.