From b044289e3c8fbc4eb4ffa5c1d96da51aa0a41f9b Mon Sep 17 00:00:00 2001 From: Stefan Boberg Date: Thu, 6 Mar 2025 17:35:39 +0100 Subject: std::span -> eastl::span --- src/zenhttp/include/zenhttp/httpclient.h | 2 +- src/zenhttp/include/zenhttp/httpserver.h | 4 ++-- src/zenhttp/include/zenhttp/packageformat.h | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) (limited to 'src/zenhttp/include') diff --git a/src/zenhttp/include/zenhttp/httpclient.h b/src/zenhttp/include/zenhttp/httpclient.h index a46b9fd83..a9c9fe00d 100644 --- a/src/zenhttp/include/zenhttp/httpclient.h +++ b/src/zenhttp/include/zenhttp/httpclient.h @@ -88,7 +88,7 @@ public: : Entries({{{std::string(Entry.first), std::string(Entry.second)}}}) { } - KeyValueMap(std::span>&& List) : Entries(List.begin(), List.end()) {} + KeyValueMap(eastl::span>&& List) : Entries(List.begin(), List.end()) {} KeyValueMap(std::initializer_list>&& List) : Entries(List.begin(), List.end()) {} }; diff --git a/src/zenhttp/include/zenhttp/httpserver.h b/src/zenhttp/include/zenhttp/httpserver.h index 6cff5c69c..4f049ee8b 100644 --- a/src/zenhttp/include/zenhttp/httpserver.h +++ b/src/zenhttp/include/zenhttp/httpserver.h @@ -13,12 +13,12 @@ #include #include +#include #include #include #include #include #include -#include #include namespace zen { @@ -95,7 +95,7 @@ public: Note that this is destructive in the sense that the IoBuffer instances referred to by Blobs will be moved into our response handler array where they are kept alive, in order to reduce ref-counting storms */ - virtual void WriteResponse(HttpResponseCode ResponseCode, HttpContentType ContentType, std::span Blobs) = 0; + virtual void WriteResponse(HttpResponseCode ResponseCode, HttpContentType ContentType, eastl::span Blobs) = 0; virtual void WriteResponse(HttpResponseCode ResponseCode) = 0; virtual void WriteResponse(HttpResponseCode ResponseCode, HttpContentType ContentType, std::u8string_view ResponseString) = 0; virtual void WriteResponse(HttpResponseCode ResponseCode, HttpContentType ContentType, CompositeBuffer& Payload); diff --git a/src/zenhttp/include/zenhttp/packageformat.h b/src/zenhttp/include/zenhttp/packageformat.h index f5bd53c5b..bd2f5573d 100644 --- a/src/zenhttp/include/zenhttp/packageformat.h +++ b/src/zenhttp/include/zenhttp/packageformat.h @@ -138,7 +138,7 @@ public: void Finalize(); const eastl::vector& GetAttachments() { return m_Attachments; } CbObject GetRootObject() { return m_RootObject; } - std::span GetPayloadBuffers() { return m_PayloadBuffers; } + eastl::span GetPayloadBuffers() { return m_PayloadBuffers; } private: enum class State -- cgit v1.2.3