summaryrefslogtreecommitdiff
path: root/cpp
diff options
context:
space:
mode:
authorfrsyuki <frsyuki@users.sourceforge.jp>2010-05-30 01:45:07 +0900
committerfrsyuki <frsyuki@users.sourceforge.jp>2010-05-30 01:45:07 +0900
commit2f5d83f07d7a50bfb7287e1fa28bc7a7fd7e7d49 (patch)
tree185339d077e1809768a838eee46a308f4505e5dd /cpp
parent81b0c316cda14629821005cba5ce34c80ccd61d2 (diff)
downloadmsgpack-python-2f5d83f07d7a50bfb7287e1fa28bc7a7fd7e7d49.tar.gz
cpp: type::tuple& operator>>: fix conversion type
Diffstat (limited to 'cpp')
-rw-r--r--cpp/msgpack/type/tuple.hpp.erb2
1 files changed, 1 insertions, 1 deletions
diff --git a/cpp/msgpack/type/tuple.hpp.erb b/cpp/msgpack/type/tuple.hpp.erb
index 1b0c172..0d9ae91 100644
--- a/cpp/msgpack/type/tuple.hpp.erb
+++ b/cpp/msgpack/type/tuple.hpp.erb
@@ -141,7 +141,7 @@ type::tuple<A0<%1.upto(i) {|j|%>, A<%=j%><%}%>>& operator>> (
if(o.type != type::ARRAY) { throw type_error(); }
if(o.via.array.size < <%=i+1%>) { throw type_error(); }
<%0.upto(i) {|j|%>
- o.via.array.ptr[<%=j%>].convert<A<%=j%>>(&v.template get<<%=j%>>());<%}%>
+ o.via.array.ptr[<%=j%>].convert<typename type::tuple_type<A<%=j%>>::type>(&v.template get<<%=j%>>());<%}%>
return v;
}
<%}%>