@@ -95,7 +95,7 @@ private:
9595template < >
9696struct tuple< > {
9797 tuple() {}
98- tuple(object const& o) { o.convert(*this); }
98+ tuple(msgpack:: object const& o) { o.convert(*this); }
9999 typedef tuple< > value_type;
100100};
101101<% 0 . upto ( GENERATION_LIMIT ) { |i |%>
@@ -105,7 +105,7 @@ struct tuple<A0<%1.upto(i) {|j|%>, A<%=j%><%}%>> {
105105 tuple() {}
106106 tuple(typename tuple_type< A0 > ::transparent_reference _a0<% 1 . upto ( i ) { |j |%> , typename tuple_type< A <%= j%> > ::transparent_reference _a<%= j %> <% } %> ) :
107107 a0(_a0)<% 1 . upto ( i ) { |j |%> , a<%= j%> (_a<%= j %> )<% } %> {}
108- tuple(object const& o) { o.convert(*this); }
108+ tuple(msgpack:: object const& o) { o.convert(*this); }
109109 template < int N > typename tuple_element< value _type, N > ::reference get()
110110 { return tuple_element< value _type, N > (*this).get(); }
111111 template < int N > typename const_tuple_element< value _type, N > ::const_reference get() const
@@ -136,18 +136,18 @@ inline tuple<A0<%1.upto(i) {|j|%>, A<%=j%><%}%>> make_tuple(typename tuple_type<
136136
137137} // namespace type
138138
139- inline object const& operator> > (
140- object const& o,
139+ inline msgpack:: object const& operator> > (
140+ msgpack:: object const& o,
141141 type::tuple< > &) {
142- if(o.type != type::ARRAY) { throw type_error(); }
142+ if(o.type != msgpack:: type::ARRAY) { throw type_error(); }
143143 return o;
144144}
145145<% 0 . upto ( GENERATION_LIMIT ) { |i |%>
146146template < typename A0<% 1 . upto ( i ) { |j |%> , typename A <%= j %> <% } %> >
147- inline object const& operator> > (
148- object const& o,
147+ inline msgpack:: object const& operator> > (
148+ msgpack:: object const& o,
149149 type::tuple< A0 <% 1 . upto ( i ) { |j |%> , A <%= j %> <% } %> > & v) {
150- if(o.type != type::ARRAY) { throw type_error(); }
150+ if(o.type != msgpack:: type::ARRAY) { throw type_error(); }
151151 if(o.via.array.size < <%= i +1%> ) { throw type_error(); }
152152 <% 0 . upto ( i ) { |j |%>
153153 o.via.array.ptr[<%= j%> ].convert< typename type::tuple_type < A <%= j%> > ::type> (v.template get< <%= j %> > ());<% } %>
@@ -156,16 +156,16 @@ inline object const& operator>> (
156156<% } %>
157157
158158template < 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 |%>
166166template < 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 |%>
@@ -175,22 +175,22 @@ inline const packer<Stream>& operator<< (
175175<% } %>
176176
177177inline void operator< < (
178- object::with_zone& o,
178+ msgpack:: object::with_zone& o,
179179 const type::tuple< > &) {
180- o.type = type::ARRAY;
180+ o.type = msgpack:: type::ARRAY;
181181 o.via.array.ptr = nullptr;
182182 o.via.array.size = 0;
183183}
184184<% 0 . upto ( GENERATION_LIMIT ) { |i |%>
185185template < typename A0<% 1 . upto ( i ) { |j |%> , typename A <%= j %> <% } %> >
186186inline void operator< < (
187- object::with_zone& o,
187+ msgpack:: object::with_zone& o,
188188 const type::tuple< A0 <% 1 . upto ( i ) { |j |%> , A <%= j %> <% } %> > & v) {
189- o.type = type::ARRAY;
190- o.via.array.ptr = static_cast< object * > (o.zone.allocate_align(sizeof(object)*<%= i +1 %> ));
189+ o.type = msgpack:: type::ARRAY;
190+ o.via.array.ptr = static_cast< msgpack:: object* > (o.zone.allocate_align(sizeof(msgpack:: object)*<%= i +1 %> ));
191191 o.via.array.size = <%= i +1%> ;
192192 <% 0 . upto ( i ) { |j |%>
193- o.via.array.ptr[<%= j%> ] = object(v.template get< <%= j %> > (), o.zone);<% } %>
193+ o.via.array.ptr[<%= j%> ] = msgpack:: object(v.template get< <%= j %> > (), o.zone);<% } %>
194194}
195195<% } %>
196196
0 commit comments