summaryrefslogtreecommitdiff
path: root/cpp/src/Ice/ThreadPool.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'cpp/src/Ice/ThreadPool.cpp')
-rw-r--r--cpp/src/Ice/ThreadPool.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/cpp/src/Ice/ThreadPool.cpp b/cpp/src/Ice/ThreadPool.cpp
index 7b9f6fbbe8e..ec0e7e3b6b5 100644
--- a/cpp/src/Ice/ThreadPool.cpp
+++ b/cpp/src/Ice/ThreadPool.cpp
@@ -757,12 +757,12 @@ IceInternal::ThreadPool::read(const EventHandlerPtr& handler)
ptrdiff_t pos = stream.i - stream.b.begin();
assert(pos >= headerSize);
stream.i = stream.b.begin();
- ByteSeq m(sizeof(magic), 0);
+ pair<const Byte*, const Byte*> m;
stream.readBlob(m, static_cast<Int>(sizeof(magic)));
- if(!equal(m.begin(), m.end(), magic))
+ if(!equal(m.first, m.second, magic))
{
BadMagicException ex(__FILE__, __LINE__);
- ex.badMagic = m;
+ ex.badMagic = vector<Byte>(m.first, m.second);
throw ex;
}
Byte pMajor;