阅读背景:

如何将shared_ptr作为参数传递给可变对象?

来源:互联网 

I want to pass an object by smart-pointer reference to a function. The function may change the value of the referenced object, but may not change the reference itself. There are two obvious ways to handle this.I want to pass an object by smart-pointer refer




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

分享到: