I have recently started using VSCode(1.28) for programming in c++ on my mac. But I can't use a lot of stl functions like emplace_back() ... Is there a way to resolve this, Thank You.
# | User | Rating |
---|---|---|
1 | tourist | 3880 |
2 | jiangly | 3669 |
3 | ecnerwala | 3654 |
4 | Benq | 3627 |
5 | orzdevinwang | 3612 |
6 | Geothermal | 3569 |
6 | cnnfls_csy | 3569 |
8 | jqdai0815 | 3532 |
9 | Radewoosh | 3522 |
10 | gyh20 | 3447 |
# | User | Contrib. |
---|---|---|
1 | awoo | 161 |
1 | maomao90 | 161 |
3 | adamant | 156 |
4 | maroonrk | 153 |
5 | -is-this-fft- | 148 |
5 | SecondThread | 148 |
5 | atcoder_official | 148 |
8 | Petr | 147 |
9 | nor | 144 |
10 | TheScrasse | 143 |
I have recently started using VSCode(1.28) for programming in c++ on my mac. But I can't use a lot of stl functions like emplace_back() ... Is there a way to resolve this, Thank You.
Name |
---|
I think g++ uses C++98 by default. You have to add the flag -std=C++14 to your compilation options if you want to use C++14.
LanceTheDragonTrainer can you describe a bit more? I want to set up VS Code for c++14 in my windows 10 OS.