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

Fix #8695: til::spsc assignment operators don't return anything #8811

Merged
1 commit merged into from
Jan 19, 2021
Merged

Fix #8695: til::spsc assignment operators don't return anything #8811

1 commit merged into from
Jan 19, 2021

Conversation

lhecker
Copy link
Member

@lhecker lhecker commented Jan 17, 2021

The following code didn't previously work as the assignment operators
didn't return a self reference:

auto channel = til::spsc::channel<QueueItem>(100);
auto producer = std::move(channel.first);
channel.first = std::move(producer);

Validation Steps Performed

I've added a basic smoke test for til::spsc.

Closes #8695

@ghost ghost added Area-CodeHealth Issues related to code cleanliness, linting, rules, warnings, errors, static analysis, etc. Issue-Bug It either shouldn't be doing this or needs an investigation. Product-Conhost For issues in the Console codebase Product-Terminal The new Windows Terminal. labels Jan 17, 2021
@DHowett DHowett added the AutoMerge Marked for automatic merge by the bot when requirements are met label Jan 17, 2021
@ghost
Copy link

ghost commented Jan 17, 2021

Hello @DHowett!

Because this pull request has the AutoMerge label, I will be glad to assist with helping to merge this pull request once all check-in policies pass.

Do note that I've been instructed to only help merge pull requests of this repository that have been opened for at least 8 hours, a condition that will be fulfilled in about 1 hour 14 minutes. No worries though, I will be back when the time is right! 😉

p.s. you can customize the way I help with merging this pull request, such as holding this pull request until a specific person approves. Simply @mention me (@msftbot) and give me an instruction to get started! Learn more here.

@DHowett DHowett changed the title Fixed #8695: til:spsc assignment operators don't return anything Fix #8695: til::spsc assignment operators don't return anything Jan 18, 2021
@ghost ghost merged commit de49cf1 into microsoft:main Jan 19, 2021
@lhecker lhecker deleted the fix-8695-spsc branch January 19, 2021 12:22
mpela81 pushed a commit to mpela81/terminal that referenced this pull request Jan 28, 2021
…ing (microsoft#8811)

The following code didn't previously work as the assignment operators
didn't return a self reference:

```cpp
auto channel = til::spsc::channel<QueueItem>(100);
auto producer = std::move(channel.first);
channel.first = std::move(producer);
```

## Validation Steps Performed

I've added a basic smoke test for `til::spsc`.

Closes microsoft#8695
This pull request was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area-CodeHealth Issues related to code cleanliness, linting, rules, warnings, errors, static analysis, etc. AutoMerge Marked for automatic merge by the bot when requirements are met Issue-Bug It either shouldn't be doing this or needs an investigation. Product-Conhost For issues in the Console codebase Product-Terminal The new Windows Terminal.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Assignment operators in til::spsc don't return anything
3 participants