| 152 | |
| 153 | template <typename U, typename ...T> |
| 154 | void send(U&& arg1, T&& ...args) |
| 155 | /*! |
| 156 | ensures |
| 157 | - sends all the arguments to send() to the subprocess by serializing them |
| 158 | with interprocess_serialize(). |
| 159 | !*/ |
| 160 | { |
| 161 | interprocess_serialize(arg1, iosub); |
| 162 | send(std::forward<T>(args)...); |
| 163 | if (!iosub) |
| 164 | { |
| 165 | std::ostringstream sout; |
| 166 | sout << stderr.rdbuf(); |
| 167 | throw dlib::error("Error sending object to child process.\n" + sout.str()); |
| 168 | } |
| 169 | } |
| 170 | void send() {iosub.flush();} |
| 171 | |
| 172 | template <typename U, typename ...T> |
nothing calls this directly
no test coverage detected