boostorg / boostorg/program_options

non static member shadows

Open
#144 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
C++
Stars
136
Forks
117
PR merge metrics
No merged PRs in 30d

Description

When compiling with clang 19.1.7 on Alma with -Werror and a number of other flags (we run with most warnings enabled), the line https://github.com/boostorg/program_options/blob/develop/include/boost/program_options/parsers.hpp#L162 was flagged with `error: non-static data memeber 'm_desc' of 'basic_command_line_parser' shadows member inherited from type 'cmdline' [-Werror, -Wshadow-field]`. We opted to add a local patch to suppress this using pragma push/pop at the above location. Someone with more familiarity with the code may have a more appropriate solution. If the push/pop is the desired solution, happy to submit a PR with that change included.

Env:
Alma 9.6
Boost 1.88.0 via cmake
clang 19.1.7

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.