Thou shalt not inherit from std::vector
Actually, there is nothing wrong with public inheritance of std::vector. If you need this, just do that. I would suggest doing that only if it is really necessary. Only if you can’t do what you want with free functions (e.g. should keep some state). The problem is that MyVector is a new entity. It means … Read more