16 std::vector<std::string>& read,
18 std::vector<std::string>& write,
21 auto resolve_branch_names = [](
const std::string& input, std::vector<std::string>& output)
24 boost::split(output, input, boost::is_any_of(
";"));
26 std::for_each(output.begin(), output.end(), [](
auto& name) { boost::trim(name); });
28 output.erase(std::remove(output.begin(), output.end(),
""), output.end());
31 resolve_branch_names(option.read, read);
32 if (read.size() != read_num)
35 "Task {:?} requires {} read branch(es) but only received {} branch(es)! Parsed string: {:?}",
41 resolve_branch_names(option.write, write);
42 if (write.size() != write_num)
45 "Task {:?} requires {} write branch(es) but only received {} branch(es)! Parsed string: {:?}",