diff --git a/src/io/Iovec.hxx b/src/io/Iovec.hxx index 37d52911f..a6897fe1c 100644 --- a/src/io/Iovec.hxx +++ b/src/io/Iovec.hxx @@ -23,7 +23,7 @@ MakeIovec(std::span s) noexcept template constexpr struct iovec -MakeIovecT(const T &t) noexcept +MakeIovecT(T &t) noexcept { return MakeIovec(std::span{&t, 1}); } @@ -33,7 +33,7 @@ inline auto MakeIovecStatic() noexcept { static constexpr T value = _value; - return MakeIovecT(value); + return MakeIovecT(value); } constexpr std::span