Skip to content

Fix static_string.cpp compilation with MSVC standard library - #121

Merged
ChrisThrasher merged 1 commit into
mainfrom
windows_tests
Feb 15, 2024
Merged

ChrisThrasher merged 1 commit into
mainfrom
windows_tests

Conversation

@ChrisThrasher

Copy link
Copy Markdown
Collaborator

std::array's iterator is a pointer in libc++ and libstdc++ so const auto* works fine. However the array iterator is not a pointer on MSVC so compilation fails. Removing the asterisk still results in a pointer type being used but causes a clang-tidy check to fail so we have to disable that.

std::array's iterator is a pointer in libc++ and libstdc++ so
`const auto*` works fine. However the array iterator is not a
pointer on MSVC so compilation fails. Removing the asterisk still
results in a pointer type being used but causes a clang-tidy check
to fail so we have to disable that.
@codecov

codecov Bot commented Feb 15, 2024 •

Copy link
Copy Markdown

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (d55da72) 98.65% compared to head (e247829) 98.65%.

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #121   +/-   ##
=======================================
  Coverage   98.65%   98.65%           
=======================================
  Files          11       11           
  Lines         223      223           
=======================================
  Hits          220      220           
  Misses          3        3           
Flag Coverage Δ
humble 98.65% <ø> (ø)
rolling 98.65% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

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

@ChrisThrasher

Copy link
Copy Markdown
Collaborator Author

@traversaro does this work on your machine? I hope we can eventually get some Windows CI jobs so we can ensure we don't break Windows compat in the future.

@ChrisThrasher
ChrisThrasher merged commit f2f9398 into main Feb 15, 2024
@delete-merged-branch
delete-merged-branch Bot deleted the windows_tests branch February 15, 2024 19:51
@traversaro

Copy link
Copy Markdown

@traversaro does this work on your machine? I hope we can eventually get some Windows CI jobs so we can ensure we don't break Windows compat in the future.

Sorry, this ended up in European evening. I will check this tomorrow!

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.

3 participants