Hi,
How do i derive from the vector class?
I wrote this but it is not correct for sure.
thanksCode:template <class T, class Allocator = allocator<T> > class DataBlock : vector <T,Allocator > { //some more functions };
Hi,
How do i derive from the vector class?
I wrote this but it is not correct for sure.
thanksCode:template <class T, class Allocator = allocator<T> > class DataBlock : vector <T,Allocator > { //some more functions };
Ok I found it.
sorry for the post
You don't, actually. vector is not designed to be derived from. If you want to add functionality, write free functions.
All the buzzt!
CornedBee
"There is not now, nor has there ever been, nor will there ever be, any programming language in which it is the least bit difficult to write bad code."
- Flon's Law