Skip to content

Conversation

@AlexGuteniev
Copy link
Contributor

Follow up to #5808

#5808 added functions that handle moving of function that is wrapped in move_only_function, the 32-bit and the 64-bit flavor.

None of them was actually exercised. It takes another move to exercise these functions.

Also renamed test_wrapped_call to test_wrapped_move_call to distinguish it from the future test_wrapped_copy_call.

Discovered while working on copyable_function draft.

@AlexGuteniev AlexGuteniev requested a review from a team as a code owner January 21, 2026 06:12
@github-project-automation github-project-automation bot moved this to Initial Review in STL Code Reviews Jan 21, 2026
Comment on lines +206 to +209
alloc_checker{is_64_bit ? 0 : 1}, test_wrapped_move_move_call<move_only_function<fn_type>,
move_only_function<fn_type>, function<fn_type>, small_callable>(0);
alloc_checker{1}, test_wrapped_move_move_call<move_only_function<fn_type>, move_only_function<fn_type>,
function<fn_type>, large_callable>(0);
Copy link
Contributor Author

Choose a reason for hiding this comment

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

These two are the essential missed coverage being added.

The rest of the change is the renaming.

@StephanTLavavej StephanTLavavej added the test Related to test code label Jan 21, 2026
@StephanTLavavej StephanTLavavej moved this from Initial Review to Ready To Merge in STL Code Reviews Jan 21, 2026
@StephanTLavavej StephanTLavavej moved this from Ready To Merge to Merging in STL Code Reviews Jan 30, 2026
@StephanTLavavej
Copy link
Member

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

test Related to test code

Projects

Status: Merging

Development

Successfully merging this pull request may close these issues.

2 participants