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

filesystem: two assignments of the same value #2304

Merged
merged 1 commit into from
Nov 3, 2021

Conversation

fsb4000
Copy link
Contributor

@fsb4000 fsb4000 commented Oct 26, 2021

Fixes #2303

@fsb4000 fsb4000 requested a review from a team as a code owner October 26, 2021 16:43
@CaseyCarter CaseyCarter added the performance Must go faster label Oct 26, 2021
@StephanTLavavej
Copy link
Member

I observe that the data members and local variables appear in the order

struct __std_fs_create_directory_result {
bool _Created;
__std_win_error _Error;
};

but there's no real clarity or performance concern here (for just 2 variables), so I don't think it's worth resetting testing - no change requested.

@StephanTLavavej StephanTLavavej self-assigned this Nov 2, 2021
@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 57a9696 into microsoft:main Nov 3, 2021
@StephanTLavavej
Copy link
Member

Thanks for fixing this duplication! 😹
Thanks for fixing this duplication! 😹

@fsb4000 fsb4000 deleted the fix2303 branch November 3, 2021 13:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
performance Must go faster
Projects
None yet
Development

Successfully merging this pull request may close these issues.

std::filesystem::create_directories : _Error set twice
3 participants
  翻译: