A not so easy problem:
Covariance with Smart Pointers
by Arne Mertz
From the article:
Covariance can be a useful concept, e.g. when implementing the abstract factory design pattern. However, in modern C++, we should return smart pointers that are not recognized to be covariant like raw pointers by the compiler...
Add a Comment
Comments are closed.