Strong types for arithmetic_range_validator
Nobody has claimed this yet.
Assessment
- Difficulty
- 5/5
- Estimated time
- Over a week
- Newbie friendliness
- 25/100
Research direction
Start at the arithmetic_range_validator constructor and review the current stable API shown in the issue. Compare the proposed strong-type locations and designated-initializer option, then define the chosen API and its completion criteria before making changes.
Written by the indexing model from the issue text.
Description
Cuurent stable API:
arithmetic_range_validator(option_value_type const min_) :
min{min_},
max{std::numeric_limits<option_value_t>::max()},
valid_range_str{"[" + std::to_string(min_) + "," + std::to_string(max_) + "]"}
{}
Todo:
strong types, e.g. greater_than, less_than, etc. in the constructor can help to increase readability. We need to see how they can be implemented:
- strong types
sharg::greater_then(flies around in the main namespace..) - strong types
sharg::arithmetic_range_validator::greater_then(is very long...) - designated initialisers sharg::
arithmetic_range_validator{.greater_then = 3}(not sure if possible)
- Dominant language
- C++
- Stars
- 11
- Forks
- 9
- Avg merge
- 2h 33m
- Merged PRs (30d)
- 1
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from seqan/sharg-parser
-
bug
seqan/sharg-parser#303 · 1 assignee ·
-
Difficulty 5/5 Over a week Newbie friendliness 35/100
seqan/sharg-parser#168 · 7 comments ·
-
Difficulty 5/5 Over a week Newbie friendliness 25/100
seqan/sharg-parser#165 · 1 comment ·
-
Difficulty 4/5 3-5 days Newbie friendliness 35/100
seqan/sharg-parser#161 · 3 comments ·
-
seqan/sharg-parser#153 · 3 comments · 1 assignee ·
All issues in seqan/sharg-parser
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 86/100
-
Sensor initialization takes very long when `--initial-sim-time` is set to current UNIX timestamp Open
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
gazebosim/gz-sensors#662 · 1 comment ·
-
enhancement
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
-
comp-datalake
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
ClickHouse/ClickHouse#121222 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
LadybirdBrowser/ladybird#12123 ·