You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
sjperkins
changed the title
const qualifier on mutable_span_as prevents call to mutable_data_as without const qualifier
[C++] const qualifier on mutable_span_as prevents call to mutable_data_as without const qualifier
Mar 5, 2024
…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 <simon.perkins@gmail.com>
Signed-off-by: Sutou Kouhei <kou@clear-code.com>
…n_as (apache#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: apache#40366
Authored-by: Simon Perkins <simon.perkins@gmail.com>
Signed-off-by: Sutou Kouhei <kou@clear-code.com>
thisisnic
pushed a commit
to thisisnic/arrow
that referenced
this issue
Mar 8, 2024
…n_as (apache#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: apache#40366
Authored-by: Simon Perkins <simon.perkins@gmail.com>
Signed-off-by: Sutou Kouhei <kou@clear-code.com>
Describe the bug, including details regarding any error messages, version, and platform.
#38027 added
Buffer::span_as
andBuffer::mutable_span_as
mutable_span_as
has a const qualifier,arrow/cpp/src/arrow/buffer.h
Lines 265 to 274 in 53e0c74
but this prevents the call to
mutable_data_as
during compile:By contrast, both
span_as
anddata_as
have const qualifiers.arrow/cpp/src/arrow/buffer.h
Lines 228 to 241 in 53e0c74
Also,
mutable_span_as
should not have a const qualifier as it implies modification ofarrow::Buffer
.Component(s)
C++
The text was updated successfully, but these errors were encountered: