span: switch to std
Reduce the dependency on stdplus' version of span now that we are using
C++20 and use the one out of the STL instead.
Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
Change-Id: I040ba1796d6f278353fbc990ea6b62314927951e
diff --git a/tools/p2a.cpp b/tools/p2a.cpp
index db8b75d..3cd641a 100644
--- a/tools/p2a.cpp
+++ b/tools/p2a.cpp
@@ -29,6 +29,7 @@
#include <cstdint>
#include <cstring>
#include <memory>
+#include <span>
#include <string>
namespace host_tool
@@ -105,8 +106,8 @@
bytesRead = sys->read(*inputFd, readBuffer.data(), readBuffer.size());
if (bytesRead > 0)
{
- bridge->write(stdplus::span<const std::uint8_t>(readBuffer.data(),
- bytesRead));
+ bridge->write(
+ std::span<const std::uint8_t>(readBuffer.data(), bytesRead));
/* Ok, so the data is staged, now send the blob write with the
* details.