Why is it bad practice to derive a class from stl containers such as std::list?

Posted by WilliamKF on Stack Overflow See other posts from Stack Overflow or by WilliamKF
Published on 2010-05-01T18:27:09Z Indexed on 2010/05/01 18:37 UTC
Read the original article Hit count: 211

I've seen it declared that it is bad practice to derive a class from stl containers such as std::list.

Why is this the case? What issues does violating this cause?

© Stack Overflow or respective owner

Related posts about stl

Related posts about best-practices