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

@@ -28,7 +28,7 @@ MSGPACK_API_VERSION_NAMESPACE(v1) {
inline msgpack::object const& operator>> (msgpack::object const& o, bool& v)
{
if(o.type != msgpack::type::BOOLEAN) { throw type_error(); }
if(o.type != msgpack::type::BOOLEAN) { throw msgpack::type_error(); }
v = o.via.boolean;
return o;
}