mirror of
https://github.com/msgpack/msgpack-c.git
synced 2025-03-20 05:27:56 +01:00
cpp: adds operator<<(std::ostream&, const tuple<Type...>&) (experimental)
This commit is contained in:
parent
20de730541
commit
71dd44f430
@ -187,5 +187,20 @@ inline void operator<< (
|
|||||||
|
|
||||||
} // namespace msgpack
|
} // 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 */
|
#endif /* msgpack/type/tuple.hpp */
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user