From cbf1a7aff1a627c961f93fb39de94601a52ceb0a Mon Sep 17 00:00:00 2001 From: Ger Hobbelt Date: Mon, 25 Oct 2021 11:49:41 +0200 Subject: [PATCH] fix MSVC build error: members in initialization must occur in order of class declaration. --- test/examples.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/test/examples.cpp b/test/examples.cpp index 0dcb1e7..04bcfb6 100644 --- a/test/examples.cpp +++ b/test/examples.cpp @@ -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'; @@ -91,4 +91,4 @@ int main(int argc, char** argv) { std::cout << "running popen_examples\n"; popen_examples(); return 0; -} \ No newline at end of file +}