vendredi 8 juillet 2022

Using std::shared_ptr in a library's public interface

There is a question on stackoverflow about using boost::shared_ptr in a library's interface.

Smart pointer arithmetic (std::shared_ptr, std::unique_ptr, std::weak_ptr) is the essential part of the modern C++. I'd love to hear some opinions from the community about using std::shared_ptr in a modern C++ library's interface (static, shared).

Aucun commentaire:

Enregistrer un commentaire