diff options
author | Marc Laukien <marc@zeroc.com> | 2004-02-17 18:23:04 +0000 |
---|---|---|
committer | Marc Laukien <marc@zeroc.com> | 2004-02-17 18:23:04 +0000 |
commit | ed4330c0f7274190b2eff63bfbfe4925a08fa154 (patch) | |
tree | e17a0178d1840e7e282bf6e2875c20878433dfdf /cpp/include/IceUtil/OutputUtil.h | |
parent | more AMI and other cleanup (diff) | |
download | ice-ed4330c0f7274190b2eff63bfbfe4925a08fa154.tar.bz2 ice-ed4330c0f7274190b2eff63bfbfe4925a08fa154.tar.xz ice-ed4330c0f7274190b2eff63bfbfe4925a08fa154.zip |
fix
Diffstat (limited to 'cpp/include/IceUtil/OutputUtil.h')
-rw-r--r-- | cpp/include/IceUtil/OutputUtil.h | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/cpp/include/IceUtil/OutputUtil.h b/cpp/include/IceUtil/OutputUtil.h index d44851ca844..484e7ad7661 100644 --- a/cpp/include/IceUtil/OutputUtil.h +++ b/cpp/include/IceUtil/OutputUtil.h @@ -144,6 +144,26 @@ operator<<(Output& out, const std::vector<T>& val) return out; } +#if defined(_MSC_VER) && (_MSC_VER < 1300) + +// +// Visual C++ 6.0 needs also a version of the function above with a +// non-const vector as argument. +// + +template<typename T> +Output& +operator<<(Output& out, std::vector<T>& val) +{ + for(typename std::vector<T>::const_iterator p = val.begin(); p != val.end(); ++p) + { + out << *p; + } + return out; +} + +#endif + template<> inline Output& operator<<(Output& o, const NextLine&) |