Add msgpack prefix to type_errors

This commit is contained in:
Nobuyuki Kubota
2015-03-10 20:59:34 +09:00
parent 4b0c90fc90
commit b0ff2802d2
27 changed files with 142 additions and 142 deletions

View File

@@ -161,8 +161,8 @@ template <typename... Args>
msgpack::object const& operator>> (
msgpack::object const& o,
type::tuple<Args...>& v) {
if(o.type != msgpack::type::ARRAY) { throw type_error(); }
if(o.via.array.size < sizeof...(Args)) { throw type_error(); }
if(o.type != msgpack::type::ARRAY) { throw msgpack::type_error(); }
if(o.via.array.size < sizeof...(Args)) { throw msgpack::type_error(); }
MsgpackTupleConverter<decltype(v), sizeof...(Args)>::convert(o, v);
return o;
}