c++如何new构造函数是protected的对象

如果确实要new的话,可以继承这个类,然后new派生类,再转换为基类指针

posted @ 2019-03-26 13:36  windtail  阅读(219)  评论(0编辑  收藏  举报