
1 Feb
2011
1 Feb
'11
9:37 p.m.
I noticed that the boost::process::child does not have a default constructor. If I have a coding requirements like the following example, I would be stuck: // Note the required default constructor boost::process::child child; // Create a scope for the mutex guard { boost::lock_guard<boost::mutex> guard(process_launch); // Here I must do something within guard scope // that must be done with the boost::process::launch do_something(); child = boost::process::launch(exec, args, ctx); } // ... boost::process::status s = child.wait(); // ...