-// 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 <g0dil@berlios.de>
//
// This program is free software; you can redistribute it and/or modify
//#include "MACAddress.ih"
// Custom includes
+#include "../../../config.hh"
#define prefix_
///////////////////////////////ct.p////////////////////////////////////////
template <class InputIterator>
prefix_ senf::MACAddress::MACAddress senf::MACAddress::from_data(InputIterator i)
{
- MACAddress mac (MACAddress::noinit);
- iterator j (mac.begin());
- iterator j_end (mac.end());
- for (;j!=j_end;++j,++i)
- *j = *i;
+ MACAddress mac (senf::noinit);
+ SENF_copy_n(i, 6, mac.begin());
return mac;
}