Skip to content

Commit 60a4cba

Browse files
committed
Merge pull request #443 from redboltz/fix_442
Fixed #442.
2 parents 84932e6 + 455e019 commit 60a4cba

File tree

3 files changed

+6
-41
lines changed

3 files changed

+6
-41
lines changed

include/msgpack/v1/adaptor/adaptor_base.hpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -51,25 +51,25 @@ struct object_with_zone {
5151
template <typename T>
5252
inline
5353
msgpack::object const& operator>> (msgpack::object const& o, T& v) {
54-
return adaptor::convert<T>()(o, v);
54+
return msgpack::adaptor::convert<T>()(o, v);
5555
}
5656

5757
template <typename Stream, typename T>
5858
inline
5959
msgpack::packer<Stream>& operator<< (msgpack::packer<Stream>& o, T const& v) {
60-
return adaptor::pack<T>()(o, v);
60+
return msgpack::adaptor::pack<T>()(o, v);
6161
}
6262

6363
template <typename T>
6464
inline
6565
void operator<< (msgpack::object& o, T const& v) {
66-
adaptor::object<T>()(o, v);
66+
msgpack::adaptor::object<T>()(o, v);
6767
}
6868

6969
template <typename T>
7070
inline
7171
void operator<< (msgpack::object::with_zone& o, T const& v) {
72-
adaptor::object_with_zone<T>()(o, v);
72+
msgpack::adaptor::object_with_zone<T>()(o, v);
7373
}
7474

7575
/// @cond

include/msgpack/v2/adaptor/adaptor_base.hpp

Lines changed: 0 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -41,32 +41,6 @@ struct object_with_zone : v1::adaptor::object_with_zone<T, Enabler> {
4141

4242
} // namespace adaptor
4343

44-
// operators
45-
46-
template <typename T>
47-
inline
48-
msgpack::object const& operator>> (msgpack::object const& o, T& v) {
49-
return adaptor::convert<T>()(o, v);
50-
}
51-
52-
template <typename Stream, typename T>
53-
inline
54-
msgpack::packer<Stream>& operator<< (msgpack::packer<Stream>& o, T const& v) {
55-
return adaptor::pack<T>()(o, v);
56-
}
57-
58-
template <typename T>
59-
inline
60-
void operator<< (msgpack::object& o, T const& v) {
61-
adaptor::object<T>()(o, v);
62-
}
63-
64-
template <typename T>
65-
inline
66-
void operator<< (msgpack::object::with_zone& o, T const& v) {
67-
adaptor::object_with_zone<T>()(o, v);
68-
}
69-
7044
/// @cond
7145
} // MSGPACK_API_VERSION_NAMESPACE(v2)
7246
/// @endcond

include/msgpack/v2/adaptor/adaptor_base_decl.hpp

Lines changed: 2 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -40,17 +40,8 @@ struct object_with_zone;
4040

4141
// operators
4242

43-
template <typename T>
44-
msgpack::object const& operator>> (msgpack::object const& o, T& v);
45-
46-
template <typename Stream, typename T>
47-
msgpack::packer<Stream>& operator<< (msgpack::packer<Stream>& o, T const& v);
48-
49-
template <typename T>
50-
void operator<< (msgpack::object& o, T const& v);
51-
52-
template <typename T>
53-
void operator<< (msgpack::object::with_zone& o, T const& v);
43+
using v1::operator>>;
44+
using v1::operator<<;
5445

5546
/// @cond
5647
} // MSGPACK_API_VERSION_NAMESPACE(v2)

0 commit comments

Comments
 (0)