Skip to content

Commit ee1a8c3

Browse files
authored
GH-40366: [C++] Remove const qualifier from Buffer::mutable_span_as (#40367)
### Rationale for this change The const qualifier on `Buffer:mutable_span_as` prevents it from calling the non-const `Buffer::mutable_data_as` ### What changes are included in this PR? See issue title ### Are these changes tested? No, I believe this is a simple oversight ### Are there any user-facing changes? Yes, `Buffer::mutable_span_as` loses it's const qualifier * GitHub Issue: #40366 Authored-by: Simon Perkins <[email protected]> Signed-off-by: Sutou Kouhei <[email protected]>
1 parent 3d467ac commit ee1a8c3

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎cpp/src/arrow/buffer.h‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -269,7 +269,7 @@ class ARROW_EXPORT Buffer {
269269

270270
/// \brief Return the buffer's mutable data as a span
271271
template <typename T>
272-
util::span<T> mutable_span_as() const {
272+
util::span<T> mutable_span_as() {
273273
return util::span(mutable_data_as<T>(), static_cast<size_t>(size() / sizeof(T)));
274274
}
275275

0 commit comments

Comments
 (0)