apache / apache/arrow

[C++] Review and sanitize const_cast usage

Open
#33,628 13 comments 0 reactions 1 assignee Claimed by @js8544 View on GitHub
Component: C++ good-second-issue Type: enhancement
Dominant language
C++
Stars
17.1k
Forks
4.3k
Avg merge
3d 13h
Merged PRs (30d)
88

Description

### Describe the enhancement requested

It seems some uses of `const_cast` have crept into the codebase.
Some of them are legitimate, because of interacting with third-party APIs (usually C APIs) that don't specify `const` for arguments they won't mutate. Some of them however may be incorrect and dangerous.

### Component(s)

C++

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.