Skip to content

Issue #339 - #348

Merged
henryiii merged 5 commits into
CLIUtils:masterfrom
phlptp:enum_ostream_example
Nov 29, 2019
Merged

henryiii merged 5 commits into
CLIUtils:masterfrom
phlptp:enum_ostream_example

Conversation

@phlptp

@phlptp phlptp commented Nov 26, 2019 •

Copy link
Copy Markdown
Collaborator

add an example where the name of the enum is printed through a stream output function, which subverted the checkTransformer conversion and prevented conversion of the enumeration.

This PR deals with this situation for enumerations and other numeric types. It does it by discriminating between to_string situations in which a value is needed vs one where the converted string is needed, by adding a value_string overload which routes to the to_string unless the value is numeric or an enumeration.

… output function, which subverted the checkTransformer conversion and prevented conversion of the enumeration.
@phlptp phlptp added the bug label Nov 26, 2019
@codecov

codecov Bot commented Nov 26, 2019 •

Copy link
Copy Markdown

Codecov Report

Merging #348 into master will not change coverage.
The diff coverage is 100%.

Impacted file tree graph

@@          Coverage Diff          @@
##           master   #348   +/-   ##
=====================================
  Coverage     100%   100%           
=====================================
  Files          12     12           
  Lines        3347   3353    +6     
=====================================
+ Hits         3347   3353    +6
Impacted Files Coverage Δ
include/CLI/Validators.hpp 100% <100%> (ø) ⬆️
include/CLI/TypeTools.hpp 100% <100%> (ø) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 51a395e...94dcc48. Read the comment docs.

@phlptp

phlptp commented Nov 26, 2019

Copy link
Copy Markdown
Collaborator Author

Fix Issue #339

@henryiii
henryiii merged commit d621658 into CLIUtils:master Nov 29, 2019
@henryiii
henryiii deleted the enum_ostream_example branch November 29, 2019 13:52
@henryiii

Copy link
Copy Markdown
Collaborator

Great, thanks!

@henryiii henryiii added this to the v1.9 milestone Dec 31, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants