encoding: make Block convertible to span
Change-Id: Idb501467d1c56b95e7fdb76acda63b919fe98f85
diff --git a/tests/unit/lp/packet.t.cpp b/tests/unit/lp/packet.t.cpp
index 7763f06..588dedf 100644
--- a/tests/unit/lp/packet.t.cpp
+++ b/tests/unit/lp/packet.t.cpp
@@ -95,7 +95,7 @@
buf[1] = 0xe8;
Packet packet;
- packet.add<FragmentField>(std::make_pair(buf.begin(), buf.end()));
+ packet.add<FragmentField>({buf.begin(), buf.end()});
packet.add<SequenceField>(1000);
Block wire = packet.wireEncode();
BOOST_CHECK_EQUAL_COLLECTIONS(expectedBlock, expectedBlock + sizeof(expectedBlock),
@@ -164,7 +164,7 @@
frag[1] = 0xe8;
Packet packet;
- packet.add<FragmentField>(std::make_pair(frag.begin(), frag.end()));
+ packet.add<FragmentField>({frag.begin(), frag.end()});
packet.add<FragIndexField>(0);
packet.add<AckField>(2);
packet.wireEncode();