commit | cae47aaa270a9bb5414386e9e6ea3dd9c038c87c | [log] [tgz] |
---|---|---|
author | Davide Pesavento <davidepesa@gmail.com> | Sun Jun 09 10:00:41 2024 -0400 |
committer | Davide Pesavento <davidepesa@gmail.com> | Sun Jun 09 10:00:41 2024 -0400 |
tree | f8daab0dd510bcf729611291b533772e502960ae | |
parent | ed47b2947909ba5b4774247a089fd8da5ac51806 [diff] |
transport: fix compilation with clang 7 Change-Id: I167fee0e8505c9a55b6617513045e1841a4ae70a
diff --git a/ndn-cxx/transport/detail/stream-transport-impl.hpp b/ndn-cxx/transport/detail/stream-transport-impl.hpp index 8df5edd..6210b38 100644 --- a/ndn-cxx/transport/detail/stream-transport-impl.hpp +++ b/ndn-cxx/transport/detail/stream-transport-impl.hpp
@@ -198,7 +198,7 @@ } m_rxBufferSize += nBytesRecvd; - auto unparsedBytes = span(m_rxBuffer).first(m_rxBufferSize); + auto unparsedBytes = make_span(m_rxBuffer).first(m_rxBufferSize); while (!unparsedBytes.empty()) { auto [isOk, element] = Block::fromBuffer(unparsedBytes); if (!isOk) {