diff options
author | Bernard Normier <bernard@zeroc.com> | 2016-10-28 11:40:09 -0400 |
---|---|---|
committer | Bernard Normier <bernard@zeroc.com> | 2016-10-28 11:40:09 -0400 |
commit | b076a3a24fc9340029108e219a25305f760e1ee9 (patch) | |
tree | cddfc2fe1cb19aaeb4ff29b621f871475e79bb67 /cpp/include/Ice/StreamHelpers.h | |
parent | Update Visual Studio test project to build with Ice nuget packages (diff) | |
download | ice-b076a3a24fc9340029108e219a25305f760e1ee9.tar.bz2 ice-b076a3a24fc9340029108e219a25305f760e1ee9.tar.xz ice-b076a3a24fc9340029108e219a25305f760e1ee9.zip |
Fixed compilation warning
Diffstat (limited to 'cpp/include/Ice/StreamHelpers.h')
-rw-r--r-- | cpp/include/Ice/StreamHelpers.h | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/cpp/include/Ice/StreamHelpers.h b/cpp/include/Ice/StreamHelpers.h index 4ba92953d84..991ba55e703 100644 --- a/cpp/include/Ice/StreamHelpers.h +++ b/cpp/include/Ice/StreamHelpers.h @@ -362,13 +362,17 @@ struct StreamHelper<T, StreamHelperCategoryBuiltin> template<typename T, typename S> struct StreamWriter { +#ifdef ICE_CPP11_MAPPING static inline void write(S* stream, const T& v) { -#ifdef ICE_CPP11_MAPPING stream->writeAll(v.ice_tuple()); -#endif + } +#else + static inline void write(S*, const T&) + { // Default is to write nothing for C++98 } +#endif }; template<typename T, typename S> |