随笔 - 170
文章 - 1
评论 - 5
阅读 -
27万
01 2021 档案
error::make_unique is not a member of ‘std’
摘要:解决这个问题 需要 c++14 支持。 如果不支持。 可以自己写一个。 ~~~ template <typename T, typename... Args> std::unique_ptr<T> make_unique(Args&&... args) { return std::unique_pt
阅读全文
more than one instance of overloaded function
摘要:c++ 中程序模板方法 提示 more than one instance of overloaded function 错误 , 有可能是调用的时候没有加空间名称,或者 模板方法放置的空间不对。 如我在头文件 定义了 模板方法 namespace threading { template <typ
阅读全文