BorisSchaeling / boost-process

Boost.Process is a library to manage system processes
Boost Software License 1.0
32 stars 20 forks source link

Add sequence() initializer to pass a runtime container of initializers. #8

Open nat-goodspeed opened 8 years ago

nat-goodspeed commented 8 years ago

sequence() returns an initializer adapter that forwards initializer method calls to each contained initializer in turn.

Also defines any_initializer as the element type for the container of interest.

std::vector<any_initializer> initializers;
initializers.push_back(run_exe("myprog"));
...
execute(sequence(initializers));