Skip to content

Commit

Permalink
Merge pull request benman64#3 from GerHobbelt/patch03
Browse files Browse the repository at this point in the history
fix MSVC build error: members in initialization must occur in order o…
  • Loading branch information
wgledbe authored Dec 22, 2021
2 parents 8ea8ff2 + cbf1a7a commit 57a9c47
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions test/examples.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,9 @@ void simple() {
#if __cplusplus >= 202002L
// capture output. You can do this syntax if you have C++20
process = subprocess::run({"echo", "hello", "world"}, {
.cout = PipeOption::pipe,
// make true to throw exception
.check = false
// make true to throw exception
.check = false,
.cout = PipeOption::pipe
});

std::cout << "captured: " << process.cout << '\n';
Expand Down Expand Up @@ -91,4 +91,4 @@ int main(int argc, char** argv) {
std::cout << "running popen_examples\n";
popen_examples();
return 0;
}
}

0 comments on commit 57a9c47

Please sign in to comment.