We (should) know that C++ standard library containers, including std::string
, are not meant to be inherited from. But still, C++98/03 did allow us to do it even if it was leading to bugs.
Now that the final
keyword is available, are those standard library container marked final
to prevent bad use of inheritance with them?
If not, why is that?
See Question&Answers more detail:os