Skip to content

Fix null function check for move_only_function assigned from a DLL and issues caused by an unloaded DLL that constructed or assigned an empty move_only_function - #3038

Merged
Stephan T. Lavavej (StephanTLavavej) merged 4 commits into
microsoft:mainfrom
AlexGuteniev:this_is_i_guess_what_we_call_dll_hell
Aug 18, 2022

Conversation

@AlexGuteniev

Copy link
Copy Markdown
Contributor

Fixes #3037

@AlexGuteniev
Alex Guteniev (AlexGuteniev) requested a review from a team as a code owner August 17, 2022 07:54
@AlexGuteniev Alex Guteniev (AlexGuteniev) changed the title Fix issues caused by an unloaded DLL that constructed or assigned an empty move_only_function Fix null function check for move_only_function assigned from a DLL and issues caused by an unloaded DLL that constructed or assigned an empty move_only_function Aug 17, 2022
@CaseyCarter Casey Carter (CaseyCarter) added the bug Something isn't working label Aug 17, 2022
Comment thread stl/inc/functional Outdated
Comment thread stl/inc/functional Outdated
@StephanTLavavej

Copy link
Copy Markdown
Member

Thanks for fixing this bug before ABI lockdown! I pushed extremely minor changes to use auto and improve comment grammar/spelling.

@StephanTLavavej

Copy link
Copy Markdown
Member

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

@StephanTLavavej
Stephan T. Lavavej (StephanTLavavej) merged commit 39b29dd into microsoft:main Aug 18, 2022
@StephanTLavavej

Copy link
Copy Markdown
Member

Thanks again for fixing this bug before it was trapped in ABI amber for a million years! 🐞 🦕 😹

@AlexGuteniev
Alex Guteniev (AlexGuteniev) deleted the this_is_i_guess_what_we_call_dll_hell branch August 18, 2022 22:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

std::move_only_function::operator bool doesn't work for DLLs

4 participants