io/BufferedReader: fix ReadFullT() after std::span migration
This commit is contained in:
parent
daf935d310
commit
859ffddea3
|
@ -68,7 +68,7 @@ public:
|
||||||
|
|
||||||
template<typename T>
|
template<typename T>
|
||||||
void ReadFullT(T &dest) {
|
void ReadFullT(T &dest) {
|
||||||
ReadFull({&dest, sizeof(dest)});
|
ReadFull(std::as_writable_bytes(std::span{&dest, 1}));
|
||||||
}
|
}
|
||||||
|
|
||||||
template<typename T>
|
template<typename T>
|
||||||
|
|
Loading…
Reference in New Issue