licoded / self-study-drafts

buffer for records
0 stars 0 forks source link

identifier "make_shared" is undefined #155

Open licoded opened 12 months ago

licoded commented 12 months ago

说明

C++20 ,才有 make_shared 函数

VSCode中,C/C++ plugin 如何启用/设置 C++ version

// .vscode/c_cpp_properties.json
{
    "configurations": [
        {
            "name": "Linux",    // NEED to be changed according to your OS!
            "includePath": [
                "${workspaceFolder}/**"
            ],
            "defines": [],
            // "compilerPath": "C:/path/to/your/compiler",
            "cStandard": "c11",
            "cppStandard": "c++20"
        }
    ],
    "version": 4
}