From 4f91d59a969b5a062d9551b987ac3888af9757d5 Mon Sep 17 00:00:00 2001 From: Volker Fischer Date: Mon, 16 Dec 2013 20:41:09 +0000 Subject: [PATCH] fix compile error on MacOS --- src/buffer.h | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/src/buffer.h b/src/buffer.h index 002f1986..234f6770 100755 --- a/src/buffer.h +++ b/src/buffer.h @@ -271,11 +271,8 @@ public: else { // data can be read in one step - const std::vector::const_iterator ItMemoryGetPos = - vecMemory.begin() + iGetPos; - - std::copy ( ItMemoryGetPos, - ItMemoryGetPos + iInSize, + std::copy ( vecMemory.begin() + iGetPos, + vecMemory.begin() + iGetPos + iInSize, vecData.begin() ); // set the get position one block further (no wrap around needs