From 71dd44f4308dbdda2d087130452182093262ee01 Mon Sep 17 00:00:00 2001 From: frsyuki Date: Tue, 6 Jul 2010 12:26:21 +0900 Subject: [PATCH] cpp: adds operator<<(std::ostream&, const tuple&) (experimental) --- cpp/src/msgpack/type/tuple.hpp.erb | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/cpp/src/msgpack/type/tuple.hpp.erb b/cpp/src/msgpack/type/tuple.hpp.erb index 0d9ae91c..ebef8163 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 A<%=j%><%}%>> +//inline std::ostream& operator<< (std::ostream& o, +// const msgpack::type::tuple, A<%=j%><%}%>>& v) { +// return o << "[" +// <%0.upto(i) {|j|%> +// <<<%if j != 0 then%> ", " <<<%end%> v.template get<<%=j%>>()<%}%> +// << "]"; +//} +//<%}%> + #endif /* msgpack/type/tuple.hpp */