event/BufferedSocket: use std::byte

This commit is contained in:
Max Kellermann
2023-09-27 10:29:40 +02:00
parent 8ca6606323
commit 9daf8f6de5

View File

@@ -8,7 +8,7 @@
#include "util/StaticFifoBuffer.hxx" #include "util/StaticFifoBuffer.hxx"
#include <cassert> #include <cassert>
#include <cstdint> #include <cstddef>
#include <exception> #include <exception>
#include <type_traits> #include <type_traits>
@@ -18,7 +18,7 @@ class EventLoop;
* A #SocketEvent specialization that adds an input buffer. * A #SocketEvent specialization that adds an input buffer.
*/ */
class BufferedSocket { class BufferedSocket {
StaticFifoBuffer<uint8_t, 8192> input; StaticFifoBuffer<std::byte, 8192> input;
protected: protected:
SocketEvent event; SocketEvent event;