Originally posted by Zaei
Dont initialize anything in your default VERTEX constructor. Doing so can be pointless in many situations(ie, you are going to fill it anyway, what is the point of 3 float copys?). Also, you dont HAVE to use initializer lists(i dont). To call a constructor of a Base class, simply call it in the derived constructor (ie, "Base(a)"). Nothing wrong there...

I would have to say, though, that this is a bad use of inheritance. Read my thoughts on RTTI a few posts up =).

Z.
Alright how about this then:
PHP Code:
class VERTEX {
public:
  
VERTEX () {}
  
VERTEX (const VERTEXv) : x(v.x), y(v.y), z(v.z) {}
  
VERTEX (float afloat bfloat c) : x(a), y(b), z(c) {}
  
float xyz;