diff options
author | Alan Conway <aconway@apache.org> | 2009-03-03 14:42:11 +0000 |
---|---|---|
committer | Alan Conway <aconway@apache.org> | 2009-03-03 14:42:11 +0000 |
commit | 61093310b7c822259c8f5144d752bf0c13fc2aa3 (patch) | |
tree | 65cf7bcf8f1461fbac4aeb0c3aa5ba73585a2622 /qpid/cpp/src/qpid/framing | |
parent | 52da9438797254898d8bec4e8d26f77158c6bd23 (diff) | |
download | qpid-python-61093310b7c822259c8f5144d752bf0c13fc2aa3.tar.gz |
Avoid use of std::vector::data(), not available on some platforms.
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@749621 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'qpid/cpp/src/qpid/framing')
-rw-r--r-- | qpid/cpp/src/qpid/framing/FrameDecoder.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/qpid/cpp/src/qpid/framing/FrameDecoder.cpp b/qpid/cpp/src/qpid/framing/FrameDecoder.cpp index 6f0ae9756f..41c79afd17 100644 --- a/qpid/cpp/src/qpid/framing/FrameDecoder.cpp +++ b/qpid/cpp/src/qpid/framing/FrameDecoder.cpp @@ -70,7 +70,7 @@ bool FrameDecoder::decode(Buffer& buffer) { void FrameDecoder::setFragment(const char* data, size_t size) { fragment.resize(size); - ::memcpy(fragment.data(), data, size); + ::memcpy(&fragment[0], data, size); } std::pair<const char*, size_t> FrameDecoder::getFragment() const { |