c++ - 可变参数模板的英特尔编译器错误评论?

标签 c++ intel compiler-warnings variadic-templates icc

我使用 intel 编译器,因为 intel 并不真正支持 -Wall 我使用 -Wremarks 来警告...

我有这个简单的代码,它只是制作一个特定的对象..

    template<typename... Args_t>
    static inline Obj makeObj(Args_t&&... args) {
        auto obj = std::make_shared<Obj>(args...); // probably can forward but doesn't matter..
        return obj;
    }

我得到了这句话:

remark #869: parameter "args" was never referenced

这是一个错误吗?有人看到了吗?

最佳答案

这只是一个错误警告 that was already reported in the Intel forum .它没有任何特殊意义,因为代码完全没问题(尽管你应该考虑完美转发)。

关于c++ - 可变参数模板的英特尔编译器错误评论?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/26648632/

相关文章:

c++ - 如何强制编译 Boost 以使用 -fPIC

c++ - 为对象实现二维数组

android - 在 BIOS 中启用英特尔虚拟化 (VT-X) 而无需选项

c++ - 为什么英特尔编译器忽略英特尔 MIC 的非时间预取 pragma 指令?

objective-c - 如何抑制 Xcode 上的 "dead store"编译器警告?

c++ - ITypeLib : GetLibAttr and ReleaseTLibAttr

intel - 我不明白 cachegrind 与 perf 工具之间的缓存未命中数

c++ - 如何在调用(未编译)某个函数时触发警告?

ios - 从 AnyObject 转换为 CGColor?没有错误或警告

c++ - GDB 打印出错误的值