summaryrefslogtreecommitdiff
path: root/cpp/include/Ice/StreamHelpers.h
diff options
context:
space:
mode:
Diffstat (limited to 'cpp/include/Ice/StreamHelpers.h')
-rw-r--r--cpp/include/Ice/StreamHelpers.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/cpp/include/Ice/StreamHelpers.h b/cpp/include/Ice/StreamHelpers.h
index 024f50eae5f..a7773a27090 100644
--- a/cpp/include/Ice/StreamHelpers.h
+++ b/cpp/include/Ice/StreamHelpers.h
@@ -360,9 +360,12 @@ struct StreamHelper<T, StreamHelperCategoryBuiltin>
template<typename T, typename S>
struct StreamWriter
{
- static inline void write(S*, const T&)
+ static inline void write(S* stream, const T& v)
{
- // Default is to do write nothing
+#ifdef ICE_CPP11_MAPPING
+ stream->writeAll(v.ice_tuple());
+#endif
+ // Default is to write nothing for C++98
}
};