X-Git-Url: http://g0dil.de/git?a=blobdiff_plain;f=Packets%2FPacketImpl.cti;h=a00a8e3aea2d2e0ce925060592f0df4ac74e0f56;hb=46ce25973f087d30ca10eebdad6e3bfa7586ecc9;hp=aae761203d9e429b72debfe5c91944ad7c1e197a;hpb=47368f306a577d1e46df69a7f729bd3893cbe5e7;p=senf.git diff --git a/Packets/PacketImpl.cti b/Packets/PacketImpl.cti index aae7612..a00a8e3 100644 --- a/Packets/PacketImpl.cti +++ b/Packets/PacketImpl.cti @@ -1,6 +1,8 @@ -// Copyright (C) 2007 -// Fraunhofer Institut fuer offene Kommunikationssysteme (FOKUS) -// Kompetenzzentrum fuer Satelitenkommunikation (SatCom) +// $Id$ +// +// Copyright (C) 2007 +// 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 @@ -56,4 +59,6 @@ prefix_ senf::detail::PacketImpl::PacketImpl(InputIterator first, InputIterator // c-file-style: "senf" // indent-tabs-mode: nil // ispell-local-dictionary: "american" +// compile-command: "scons -u test" +// comment-column: 40 // End: