From 859ffddea372acc17f6d6d73ea4aa255ad72b84b Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Tue, 12 Sep 2023 09:32:09 +0200 Subject: [PATCH] io/BufferedReader: fix ReadFullT() after std::span migration --- src/io/BufferedReader.hxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/io/BufferedReader.hxx b/src/io/BufferedReader.hxx index 8df6b3909..aee2bc770 100644 --- a/src/io/BufferedReader.hxx +++ b/src/io/BufferedReader.hxx @@ -68,7 +68,7 @@ public: template void ReadFullT(T &dest) { - ReadFull({&dest, sizeof(dest)}); + ReadFull(std::as_writable_bytes(std::span{&dest, 1})); } template