Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue #339 #348

Merged
merged 5 commits into from
Nov 29, 2019
Merged

Issue #339 #348

merged 5 commits into from
Nov 29, 2019

Conversation

phlptp
Copy link
Collaborator

@phlptp phlptp commented Nov 26, 2019

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
Copy link

codecov bot commented Nov 26, 2019

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
Copy link
Collaborator Author

phlptp commented Nov 26, 2019

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
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