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

前端 未结 10 2370
再見小時候
再見小時候 2021-02-14 05:31

We have a C++ library that we provide to several different clients. Recently we made the switch from using raw pointers in the public interface to using boost::sharedptr instead

10条回答
  •  臣服心动
    2021-02-14 06:10

    This is C++. You know, you could template the interface class over the shared pointer implementation.

提交回复
热议问题