Skip to content

Commit 0d9a21e

Browse files
committed
Added msgpack prefix to packer.
1 parent f399ec8 commit 0d9a21e

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

56 files changed

+259
-259
lines changed

erb/cpp03_define.hpp.erb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@
6161
namespace detail { \
6262
template <typename Stream> \
6363
struct packer_serializer<Stream, enum> { \
64-
static packer<Stream>& pack(packer<Stream>& o, const enum& v) { \
64+
static msgpack::packer<Stream>& pack(msgpack::packer<Stream>& o, const enum& v) { \
6565
return o << static_cast<int>(v); \
6666
} \
6767
}; \

erb/cpp03_msgpack_tuple.hpp.erb

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -156,16 +156,16 @@ inline msgpack::object const& operator>> (
156156
<%}%>
157157

158158
template <typename Stream>
159-
inline const packer<Stream>& operator<< (
160-
packer<Stream>& o,
159+
inline const msgpack::packer<Stream>& operator<< (
160+
msgpack::packer<Stream>& o,
161161
const type::tuple<>&) {
162162
o.pack_array(0);
163163
return o;
164164
}
165165
<%0.upto(GENERATION_LIMIT) {|i|%>
166166
template <typename Stream, typename A0<%1.upto(i) {|j|%>, typename A<%=j%><%}%>>
167-
inline const packer<Stream>& operator<< (
168-
packer<Stream>& o,
167+
inline const msgpack::packer<Stream>& operator<< (
168+
msgpack::packer<Stream>& o,
169169
const type::tuple<A0<%1.upto(i) {|j|%>, A<%=j%><%}%>>& v) {
170170
o.pack_array(<%=i+1%>);
171171
<%0.upto(i) {|j|%>

erb/cpp03_msgpack_tuple_fwd.hpp.erb

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -89,14 +89,14 @@ msgpack::object const& operator>> (
8989
<%}%>
9090

9191
template <typename Stream>
92-
const packer<Stream>& operator<< (
93-
packer<Stream>& o,
92+
const msgpack::packer<Stream>& operator<< (
93+
msgpack::packer<Stream>& o,
9494
const type::tuple<>&);
9595

9696
<%0.upto(GENERATION_LIMIT) {|i|%>
9797
template <typename Stream, typename A0<%1.upto(i) {|j|%>, typename A<%=j%><%}%>>
98-
const packer<Stream>& operator<< (
99-
packer<Stream>& o,
98+
const msgpack::packer<Stream>& operator<< (
99+
msgpack::packer<Stream>& o,
100100
const type::tuple<A0<%1.upto(i) {|j|%>, A<%=j%><%}%>>& v);
101101
<%}%>
102102

include/msgpack/adaptor/bool.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ inline msgpack::object const& operator>> (msgpack::object const& o, bool& v)
3434
}
3535

3636
template <typename Stream>
37-
inline packer<Stream>& operator<< (packer<Stream>& o, const bool& v)
37+
inline msgpack::packer<Stream>& operator<< (msgpack::packer<Stream>& o, const bool& v)
3838
{
3939
if(v) { o.pack_true(); }
4040
else { o.pack_false(); }

include/msgpack/adaptor/bool_fwd.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ MSGPACK_API_VERSION_NAMESPACE(v1) {
2727

2828
msgpack::object const& operator>> (msgpack::object const& o, bool& v);
2929
template <typename Stream>
30-
packer<Stream>& operator<< (packer<Stream>& o, const bool& v);
30+
msgpack::packer<Stream>& operator<< (msgpack::packer<Stream>& o, const bool& v);
3131
void operator<< (msgpack::object& o, bool v);
3232
void operator<< (msgpack::object::with_zone& o, bool v);
3333

include/msgpack/adaptor/char_ptr.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ namespace msgpack {
2727
MSGPACK_API_VERSION_NAMESPACE(v1) {
2828

2929
template <typename Stream>
30-
inline packer<Stream>& operator<< (packer<Stream>& o, const char* v)
30+
inline msgpack::packer<Stream>& operator<< (msgpack::packer<Stream>& o, const char* v)
3131
{
3232
std::size_t size = std::strlen(v);
3333
o.pack_str(size);

include/msgpack/adaptor/char_ptr_fwd.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ namespace msgpack {
2727
MSGPACK_API_VERSION_NAMESPACE(v1) {
2828

2929
template <typename Stream>
30-
packer<Stream>& operator<< (packer<Stream>& o, const char* v);
30+
msgpack::packer<Stream>& operator<< (msgpack::packer<Stream>& o, const char* v);
3131
void operator<< (msgpack::object::with_zone& o, const char* v);
3232
void operator<< (msgpack::object& o, const char* v);
3333

include/msgpack/adaptor/cpp11/array.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ inline msgpack::object const& operator>> (msgpack::object const& o, std::array<T
4646
}
4747

4848
template <typename Stream, typename T, std::size_t N>
49-
inline packer<Stream>& operator<< (packer<Stream>& o, const std::array<T, N>& v) {
49+
inline msgpack::packer<Stream>& operator<< (msgpack::packer<Stream>& o, const std::array<T, N>& v) {
5050
o.pack_array(v.size());
5151
for(auto const& e : v) o.pack(e);
5252
return o;

include/msgpack/adaptor/cpp11/array_char.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ inline msgpack::object const& operator>> (msgpack::object const& o, std::array<c
4646
}
4747

4848
template <typename Stream, std::size_t N>
49-
inline packer<Stream>& operator<< (packer<Stream>& o, const std::array<char, N>& v)
49+
inline msgpack::packer<Stream>& operator<< (msgpack::packer<Stream>& o, const std::array<char, N>& v)
5050
{
5151
o.pack_bin(v.size());
5252
o.pack_bin_body(v.data(), v.size());

include/msgpack/adaptor/cpp11/array_char_fwd.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ template <std::size_t N>
3030
msgpack::object const& operator>> (msgpack::object const& o, std::array<char, N>& v);
3131

3232
template <typename Stream, std::size_t N>
33-
packer<Stream>& operator<< (packer<Stream>& o, const std::array<char, N>& v);
33+
msgpack::packer<Stream>& operator<< (msgpack::packer<Stream>& o, const std::array<char, N>& v);
3434

3535
template <std::size_t N>
3636
void operator<< (msgpack::object& o, const std::array<char, N>& v);

0 commit comments

Comments
 (0)