Fix a compilation error

This fixes a `copy constructor must pass its first argument by reference` compilation error when compiled with a recent enough Clang (after fe0d3e3764)
This commit is contained in:
Alexander Kornienko
2025-03-24 11:46:10 +01:00
committed by GitHub
parent 83db8112b4
commit dd83d1e1e0

View File

@@ -56,7 +56,7 @@ public:
/// Construct an arbitrarily typed buffer from a Buffer<const char>, using
/// const char as an "untyped" buffer type.
Buffer(Buffer<const char> buffer)
Buffer(const Buffer<const char> &buffer)
: ptr(reinterpret_cast<T *>(buffer.ptr)) {}
/// The pointer to the buffer's underlying storage.