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

Update description of Thread/Task::return_value(). #6135

Merged
merged 2 commits into from Apr 2, 2018

Conversation

bangerth
Copy link
Member

@bangerth bangerth commented Apr 1, 2018

This is a follow-up to #6114, given that we had some discussion there.

* <code>std::unique_ptr</code> objects can not be copied. In other words,
* to get the pointer out of the object returned from the thread, it needs
* to be moved, and in order to be moved, the current function needs to
* return a writable reference.
Copy link
Member

Choose a reason for hiding this comment

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

I think non-const is better than writable.

Copy link
Member

@tjhei tjhei left a comment

Choose a reason for hiding this comment

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

looks good otherwise.

@bangerth
Copy link
Member Author

bangerth commented Apr 2, 2018

I've updated the text as requested.

@tjhei tjhei merged commit 06eb3b1 into dealii:master Apr 2, 2018
@bangerth bangerth deleted the doc-update-2 branch April 2, 2018 18:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants