diff --git a/src/util/ForeignFifoBuffer.hxx b/src/util/ForeignFifoBuffer.hxx index 75fbad82e..bea0c1e5f 100644 --- a/src/util/ForeignFifoBuffer.hxx +++ b/src/util/ForeignFifoBuffer.hxx @@ -90,6 +90,10 @@ public: swap(data, other.data); } + friend void swap(ForeignFifoBuffer &a, ForeignFifoBuffer &b) noexcept { + a.swap(b); + } + constexpr bool IsNull() const noexcept { return data == nullptr; }