Quote:
Originally Posted by gothrog
Is there anything wrong with having a vector within a vector?
|
No.
Quote:
I know I need a modified copy and delete constructor. Plus it would need an overrided =operator.
|
Why do you think you need any of those things?
Your classes might need modified (vs. the default provided by the language) constructors or destructors or operator= etc., but not because of having a vector within a vector and not because of anything you showed in your sample code.
Also:
1) Get rid of the keyword
typedef when declaring each of your classes. This is C++, not C.
2) If you are just declaring those constructors (to be defined later) put a
; at the end of each such declaration. If you are defining them, you need
{}
3) You need a
; after the
} ending each class definition.