VS Code折叠表达式

时间:2019-03-29 11:45:10

标签: c++ visual-studio-code c++17

基本上,我从Stroustrup的书中摘录了以下代码:

#include <iostream>

template <typename... T>
int sum(T... v)
{
    return (0 + ... + v);
}

int main()
{
    int a = sum(1, 2, 3, 4, 5, 6, 7, 8);
    std::cout << a << '\n';
}

使用GCC标志在ClangMSVC/std:c++latest上编译良好。

问题在于,在VS Code中,我收到以下错误消息:

enter image description here

我在这里有什么错误吗,还是只是VS Code?如果是这样,我是否可以以某种方式打开VS Code的linter中的最新功能(或者我认为是第二最新的功能)?

0 个答案:

没有答案
相关问题