When to define copy-control members for smart pointers?

前端 未结 0 1258
温柔的废话
温柔的废话 2020-12-31 21:37

Here is the code that I will use to get my point across. It is an example from the book C++ Primer.

class HasPtr {
public:
    HasPtr(const std::string &s         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题