阅读背景:

移动语义和函数顺序评估。

来源:互联网 

Suppose I have the following:

假设我有以下几点:

#include <memory>
struct A { int x; };

class B {
  B(int x, std::unique_ptr<A> a);
};

class C : public B {
  C(std::unique_ptr<A> a) : B(a->x, std::move(a)) {}
};
#in



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

分享到: