首页 > 其他 > 详细

error::make_unique is not a member of ‘std’

时间:2021-01-08 18:22:44      阅读:282      评论:0      收藏:0      [点我收藏+]

解决这个问题  需要

c++14 支持。

如果不支持。

 

可以自己写一个。

~~~

template <typename T, typename... Args>
std::unique_ptr<T> make_unique(Args&&... args) {
return std::unique_ptr<T>(new T(std::forward<Args>(args)...));
}
~~~

error::make_unique is not a member of ‘std’

原文:https://www.cnblogs.com/swing07/p/14252621.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!