We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Hello,
In the documentation, this sample doesn't work :
subprocess::command cmd("touch " + file_path.string()).run();
#include <iostream> #include <filesystem> #include <subprocess/subprocess.hpp> using namespace subprocess::literals; int main() { std::filesystem::path file_path{"/tmp/file.txt"}; // error //subprocess::command cmd("touch " + file_path.string()).run(); // ok subprocess::command cmd2("touch " + file_path.string()); cmd2.run(); }
When I try to compile, I get this errror on gcc 11 👍
main.cpp: In function 'int main()': main.cpp:12:59: error: expected ',' or ';' before '.' token 12 | subprocess::command cmd("touch " + file_path.string()).run(); |
Is this an error in the documentation?
Jean-Marc
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Hello,
In the documentation, this sample doesn't work :
When I try to compile, I get this errror on gcc 11 👍
Is this an error in the documentation?
Jean-Marc
The text was updated successfully, but these errors were encountered: