summaryrefslogtreecommitdiff
path: root/cpp/src/msgpack
diff options
context:
space:
mode:
authorfrsyuki <frsyuki@users.sourceforge.jp>2010-07-06 12:26:21 +0900
committerfrsyuki <frsyuki@users.sourceforge.jp>2010-07-06 12:26:21 +0900
commit71dd44f4308dbdda2d087130452182093262ee01 (patch)
treecb7689137c1332f30f31ce855e1017f4f2e42d6f /cpp/src/msgpack
parent20de730541475516aa7a6361af1d1b5e4ea574b8 (diff)
downloadmsgpack-python-71dd44f4308dbdda2d087130452182093262ee01.tar.gz
cpp: adds operator<<(std::ostream&, const tuple<Type...>&) (experimental)
Diffstat (limited to 'cpp/src/msgpack')
-rw-r--r--cpp/src/msgpack/type/tuple.hpp.erb15
1 files changed, 15 insertions, 0 deletions
diff --git a/cpp/src/msgpack/type/tuple.hpp.erb b/cpp/src/msgpack/type/tuple.hpp.erb
index 0d9ae91..ebef816 100644
--- a/cpp/src/msgpack/type/tuple.hpp.erb
+++ b/cpp/src/msgpack/type/tuple.hpp.erb
@@ -187,5 +187,20 @@ inline void operator<< (
} // namespace msgpack
+
+//inline std::ostream& operator<< (std::ostream& o, const msgpack::type::tuple<>& v) {
+// return o << "[]";
+//}
+//<%0.upto(GENERATION_LIMIT) {|i|%>
+//template <typename A0<%1.upto(i) {|j|%>, typename A<%=j%><%}%>>
+//inline std::ostream& operator<< (std::ostream& o,
+// const msgpack::type::tuple<A0<%1.upto(i) {|j|%>, A<%=j%><%}%>>& v) {
+// return o << "["
+// <%0.upto(i) {|j|%>
+// <<<%if j != 0 then%> ", " <<<%end%> v.template get<<%=j%>>()<%}%>
+// << "]";
+//}
+//<%}%>
+
#endif /* msgpack/type/tuple.hpp */