阅读背景:

如何使用带有智能指针的协变返回类型?

来源:互联网 

I have code like this:

我有这样的代码:

class RetInterface {...}

class Ret1: public RetInterface {...}

class AInterface
{
  public:
     virtual boost::shared_ptr<RetInterface> get_r() const = 0;
     ...
};

class A1: public AInterface
{
  public:
     boost::shared_ptr<Ret1> get_r() const {...}
     ...
};
class RetIn



你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: