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

Improve support for string input #78

Merged
merged 3 commits into from
Oct 27, 2024
Merged

Improve support for string input #78

merged 3 commits into from
Oct 27, 2024

Conversation

rmisev
Copy link
Member

@rmisev rmisev commented Oct 26, 2024

  • Support strings that have data() and size() members of supported types. This allows other containers (e.g. std::vector) to be used as input.
  • Added support for strings that are convertible to std::basic_string_view (e.g. QString from Qt 6.7 or later).
  • Improved ATL/MFC string input support for C++17: accept any string derived from CSimpleStringT.

Before it was checked StrT has length() member.

This allows other containers (e.g. std::vector) to be used as input.
Copy link

codecov bot commented Oct 26, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 99.66%. Comparing base (066d985) to head (a4b63b2).
Report is 3 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main      #78   +/-   ##
=======================================
  Coverage   99.66%   99.66%           
=======================================
  Files          14       14           
  Lines        2422     2424    +2     
  Branches      382      382           
=======================================
+ Hits         2414     2416    +2     
  Misses          8        8           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Add support for any strings derived from CSimpleStringT when using C++17
compilers.
@rmisev rmisev merged commit a4b63b2 into main Oct 27, 2024
26 checks passed
@rmisev rmisev deleted the str-arg branch October 27, 2024 16:31
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.

1 participant