Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The "Format on save" action leads to a build error. #3734

Closed
jayoungo opened this issue Jun 6, 2019 · 1 comment
Closed

The "Format on save" action leads to a build error. #3734

jayoungo opened this issue Jun 6, 2019 · 1 comment

Comments

@jayoungo
Copy link

jayoungo commented Jun 6, 2019

  • OS and Version: Ubuntu 16.04
  • VS Code Version: 1.34.0
  • C/C++ Extension Version: 0.23.1

For simple code test.cpp below:

#include <iostream>
#include <vector>
using namespace std;

int main()
{
    vector<vector<int> > a;
    return 0;
}

After I save my file, the "Format on save" function will remove the space in vector<vector<int> > a;, it become vector<vector<int>> a;.
If I use $ g++ test.cpp, I got an error below:

error: ‘>>’ should be ‘> >’ within a nested template argument list

Whether it is a mistake, or it result from my wrong usage? Thank you very much!

@sean-mcmanus
Copy link
Contributor

This is a duplicate of #3578 . See that issue for a workaround.

@github-actions github-actions bot locked and limited conversation to collaborators Oct 8, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants