diff options
author | Marc Laukien <marc@zeroc.com> | 2001-12-18 19:51:54 +0000 |
---|---|---|
committer | Marc Laukien <marc@zeroc.com> | 2001-12-18 19:51:54 +0000 |
commit | 962348b466826f8ed899a8bd1755b939facc5f5d (patch) | |
tree | dd46b04451824177a5d4b53005bf69b5de0abad0 /cpp/src/Slice/OutputUtil.cpp | |
parent | fixes (diff) | |
download | ice-962348b466826f8ed899a8bd1755b939facc5f5d.tar.bz2 ice-962348b466826f8ed899a8bd1755b939facc5f5d.tar.xz ice-962348b466826f8ed899a8bd1755b939facc5f5d.zip |
fixes
Diffstat (limited to 'cpp/src/Slice/OutputUtil.cpp')
-rw-r--r-- | cpp/src/Slice/OutputUtil.cpp | 29 |
1 files changed, 5 insertions, 24 deletions
diff --git a/cpp/src/Slice/OutputUtil.cpp b/cpp/src/Slice/OutputUtil.cpp index 36436a93413..21b819ec338 100644 --- a/cpp/src/Slice/OutputUtil.cpp +++ b/cpp/src/Slice/OutputUtil.cpp @@ -212,29 +212,10 @@ Slice::Output::operator!() const } Output& -Slice::operator<<(Output& o, const NextLine&) +Slice::operator<<(Output& out, ios_base& (*val)(ios_base&)) { - o.nl(); - return o; -} - -Output& -Slice::operator<<(Output& o, const StartBlock&) -{ - o.sb(); - return o; -} - -Output& -Slice::operator<<(Output& o, const EndBlock&) -{ - o.eb(); - return o; -} - -Output& -Slice::operator<<(Output& o, const Separator&) -{ - o.sp(); - return o; + ostringstream s; + s << val; + out.print(s.str().c_str()); + return out; } |