Skip to content

Commit

Permalink
fix MSVC build error: members in initialization must occur in order o…
Browse files Browse the repository at this point in the history
…f class declaration.
  • Loading branch information
GerHobbelt committed Oct 25, 2021
1 parent e1cae5e commit cbf1a7a
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 cbf1a7a

Please sign in to comment.