face: fix compilation with clang 7
Change-Id: Ic07ee2405d53107a089ec2b53ef3c8bed105dd01
diff --git a/daemon/face/datagram-transport.hpp b/daemon/face/datagram-transport.hpp
index 0dcf0e1..923dde3 100644
--- a/daemon/face/datagram-transport.hpp
+++ b/daemon/face/datagram-transport.hpp
@@ -202,7 +202,7 @@
void
DatagramTransport<T, U>::handleReceive(const boost::system::error_code& error, size_t nBytesReceived)
{
- receiveDatagram(ndn::span(m_receiveBuffer).first(nBytesReceived), error);
+ receiveDatagram(ndn::make_span(m_receiveBuffer).first(nBytesReceived), error);
if (m_socket.is_open())
m_socket.async_receive_from(boost::asio::buffer(m_receiveBuffer), m_sender,
diff --git a/daemon/face/stream-transport.hpp b/daemon/face/stream-transport.hpp
index 750432f..acc92e0 100644
--- a/daemon/face/stream-transport.hpp
+++ b/daemon/face/stream-transport.hpp
@@ -247,7 +247,7 @@
NFD_LOG_FACE_TRACE("Received: " << nBytesReceived << " bytes");
m_receiveBufferSize += nBytesReceived;
- auto unparsedBytes = ndn::span(m_receiveBuffer).first(m_receiveBufferSize);
+ auto unparsedBytes = ndn::make_span(m_receiveBuffer).first(m_receiveBufferSize);
while (!unparsedBytes.empty()) {
auto [isOk, element] = Block::fromBuffer(unparsedBytes);
if (!isOk)