| 125 | |
| 126 | template <typename... Args> |
| 127 | void encode_msgpack(Args&& ... args) |
| 128 | { |
| 129 | auto r = try_encode_msgpack(std::forward<Args>(args)...); |
| 130 | if (!r) |
| 131 | { |
| 132 | JSONCONS_THROW(ser_error(r.error())); |
| 133 | } |
| 134 | } |
| 135 | |
| 136 | } // namespace msgpack |
| 137 | } // namespace jsoncons |