NEW FILE HEADER / COPYRIGHT FORMAT
[senf.git] / Packets / PacketImpl.cti
index aae7612..ca0caee 100644 (file)
@@ -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 <g0dil@berlios.de>
 //
 // This program is free software; you can redistribute it and/or modify
@@ -37,8 +39,9 @@ template <class ForwardIterator>
 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 <class InputIterator>
@@ -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: