X-Git-Url: http://g0dil.de/git?a=blobdiff_plain;f=Packets%2FPacketImpl.cti;h=ca0caee54a98e79a2b5df079fd41a1101a9ca947;hb=2371b3e67e650b7e829c35e8b4441a8ce2931ac0;hp=2e3fada18bf3134e2dfe7d4a88465cb821df4d93;hpb=f13c1275e48e97dceb7de7925793a4c69a5aeb61;p=senf.git diff --git a/Packets/PacketImpl.cti b/Packets/PacketImpl.cti index 2e3fada..ca0caee 100644 --- a/Packets/PacketImpl.cti +++ b/Packets/PacketImpl.cti @@ -1,6 +1,8 @@ +// $Id$ +// // Copyright (C) 2007 -// Fraunhofer Institut fuer offene Kommunikationssysteme (FOKUS) -// Kompetenzzentrum fuer Satelitenkommunikation (SatCom) +// Fraunhofer Institute for Open Communication Systems (FOKUS) +// Competence Center NETwork research (NET), St. Augustin, GERMANY // Stefan Bund // // This program is free software; you can redistribute it and/or modify @@ -37,8 +39,9 @@ template prefix_ void senf::detail::PacketImpl::insert(PacketData * self, iterator pos, ForwardIterator f, ForwardIterator l) { + difference_type ix (std::distance(begin(),pos)); data_.insert(pos,f,l); - updateIterators(self,pos,std::distance(f,l)); + updateIterators(self,ix,std::distance(f,l)); } template