diff options
author | Brent Eagles <brent@zeroc.com> | 2005-03-01 14:53:52 +0000 |
---|---|---|
committer | Brent Eagles <brent@zeroc.com> | 2005-03-01 14:53:52 +0000 |
commit | 3dbc91fbd669b0deb3833c6386d109b37d41dba9 (patch) | |
tree | 66074ca4a86b2d1dfd31f7bbc954091be38ecec1 /cpp | |
parent | Added Mac OS X shlib path (diff) | |
download | ice-3dbc91fbd669b0deb3833c6386d109b37d41dba9.tar.bz2 ice-3dbc91fbd669b0deb3833c6386d109b37d41dba9.tar.xz ice-3dbc91fbd669b0deb3833c6386d109b37d41dba9.zip |
fixing compilation problem for Sun One Studio 8
Diffstat (limited to 'cpp')
-rw-r--r-- | cpp/src/Ice/BasicStream.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/cpp/src/Ice/BasicStream.cpp b/cpp/src/Ice/BasicStream.cpp index 1cf225cc49d..211ac178d12 100644 --- a/cpp/src/Ice/BasicStream.cpp +++ b/cpp/src/Ice/BasicStream.cpp @@ -754,7 +754,8 @@ IceInternal::BasicStream::read(vector<bool>& v) if(sz > 0) { checkFixedSeq(sz, 1); - vector<bool>(i, i + sz).swap(v); + v.resize(sz); + copy(i, i + sz, v.begin()); i += sz; } else |