summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/util/AllocatedArray.hxx8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/util/AllocatedArray.hxx b/src/util/AllocatedArray.hxx
index fc6400014..ead3a49b3 100644
--- a/src/util/AllocatedArray.hxx
+++ b/src/util/AllocatedArray.hxx
@@ -106,6 +106,14 @@ public:
return *this;
}
+ operator ConstBuffer<T>() const noexcept {
+ return buffer;
+ }
+
+ operator WritableBuffer<T>() noexcept {
+ return buffer;
+ }
+
constexpr bool IsNull() const noexcept {
return buffer.IsNull();
}