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

Follow-up enhancements for <filesystem> #3881

Merged
merged 6 commits into from
Jul 20, 2023

Conversation

achabense
Copy link
Contributor

@achabense achabense commented Jul 17, 2023

  • Fix another problematic noexcept signature for _Read_symlink
    _Result._Text.resize(_Length);
  • Merge _Absolute into absolute, as it's simple enough
  • Nitpicks for my previous prs: add a missed // for exception safety comment; make benchmark cases look better; make the vector reserve slightly more space in lexically_normal

@achabense achabense requested a review from a team as a code owner July 17, 2023 09:42
@CaseyCarter CaseyCarter added the enhancement Something can be improved label Jul 17, 2023
@StephanTLavavej StephanTLavavej added bug Something isn't working filesystem C++17 filesystem and removed enhancement Something can be improved labels Jul 17, 2023
@StephanTLavavej StephanTLavavej self-assigned this Jul 18, 2023
@@ -3230,8 +3220,7 @@ namespace filesystem {
return _Err;
}

_Result._Text.resize(_Length);
_CSTD memcpy(_Result._Text.data(), _Offset, _Length * sizeof(wchar_t));
_Result._Text.assign(_Offset, _Length);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No change requested: This is great, thank you for noticing it!

@StephanTLavavej StephanTLavavej removed their assignment Jul 18, 2023
@StephanTLavavej StephanTLavavej self-assigned this Jul 20, 2023
@StephanTLavavej
Copy link
Member

I'm mirroring this to the MSVC-internal repo - please notify me if any further changes are pushed.

@StephanTLavavej StephanTLavavej merged commit c1c9691 into microsoft:main Jul 20, 2023
@StephanTLavavej
Copy link
Member

Thanks again for noticing and fixing another one of these bugs! 🦅 👁️ 🐞

@achabense achabense deleted the _FS_followups branch July 21, 2023 11:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working filesystem C++17 filesystem
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants