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

allow transform to work with arrays. #349

Merged
merged 5 commits into from
Nov 30, 2019
Merged

Conversation

phlptp
Copy link
Collaborator

@phlptp phlptp commented Nov 26, 2019

The element_type trait require pointer_traits to be defined for the type which it was for vector but not for array due to decay rules in C++, even though it was not used. So Element type had to be split into two templates instead of a conditional.

Fix Gitter chat issue November 25, 2019 10:09 AM

@codecov
Copy link

codecov bot commented Nov 26, 2019

Codecov Report

Merging #349 into master will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@          Coverage Diff          @@
##           master   #349   +/-   ##
=====================================
  Coverage     100%   100%           
=====================================
  Files          12     12           
  Lines        3352   3352           
=====================================
  Hits         3352   3352
Impacted Files Coverage Δ
include/CLI/TypeTools.hpp 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 67dc672...80947f0. Read the comment docs.

@henryiii
Copy link
Collaborator

Is this ready, or were you planning on a couple more tests (from gitter)?

@phlptp
Copy link
Collaborator Author

phlptp commented Nov 29, 2019

I probably should add a test with const char * arrays yet. I will get to that this weekend

…pointer_traits<T> to be defined for the type which it was for vector but not for array due to decay rules in C++, even though it was not used. So Element type had to be split into two templates instead of a conditional.
@phlptp
Copy link
Collaborator Author

phlptp commented Nov 30, 2019

I think this is ready now.

@henryiii henryiii merged commit 5a25cee into CLIUtils:master Nov 30, 2019
@henryiii henryiii deleted the array_fix branch November 30, 2019 17:00
@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
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants