inline void throw_error(const lslboost::system::error_code& err, const char* location) { if (err) do_throw_error(err, location); }
inline void throw_error(const asio::error_code& err, const char* location) { if (err) do_throw_error(err, location); }
inline void throw_error(const lslboost::system::error_code& err) { if (err) do_throw_error(err); }
inline void throw_error(const asio::error_code& err) { if (err) do_throw_error(err); }