[C++] Review and sanitize const_cast usage
Open
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
Assessment
This issue has not been assessed yet.