阅读背景:

boost make_shared获得了一个const引用。有办法解决这个问题吗?

来源:互联网 

I am using boost shared pointers in my program, and I have a class that takes as a parameters a reference to another object. The problem I am running into is the make_shared function requires all parameters to be a const reference, and I get compile errors if my class's constructor doesn't allow const reference parameters to be passed in.I am using boost shared pointers in my program,




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

分享到: