diff options
author | Marc Laukien <marc@zeroc.com> | 2001-07-24 22:32:19 +0000 |
---|---|---|
committer | Marc Laukien <marc@zeroc.com> | 2001-07-24 22:32:19 +0000 |
commit | 2d98bbf1ae013fca26c0394d599af6acbb2be6d4 (patch) | |
tree | c18dea07b76fd0592d9c5ba2a821782d6d07694e /cpp/src/Slice/OutputUtil.h | |
parent | more docu stuff (diff) | |
download | ice-2d98bbf1ae013fca26c0394d599af6acbb2be6d4.tar.bz2 ice-2d98bbf1ae013fca26c0394d599af6acbb2be6d4.tar.xz ice-2d98bbf1ae013fca26c0394d599af6acbb2be6d4.zip |
version
Diffstat (limited to 'cpp/src/Slice/OutputUtil.h')
-rw-r--r-- | cpp/src/Slice/OutputUtil.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/cpp/src/Slice/OutputUtil.h b/cpp/src/Slice/OutputUtil.h index c88b469eb14..8811af826d5 100644 --- a/cpp/src/Slice/OutputUtil.h +++ b/cpp/src/Slice/OutputUtil.h @@ -75,6 +75,15 @@ Output& operator<<(Output& out, const T& val) return out; } +template<typename T> +Output& operator<<(Output& out, T val) +{ + std::ostringstream s; + s << val; + out.print(s.str().c_str()); + return out; +} + ICE_API Output& operator<<(Output&, const NextLine&); ICE_API Output& operator<<(Output&, const StartBlock&); ICE_API Output& operator<<(Output&, const EndBlock&); |