Skip to content

[Caffe2] Delete copy constructor/assignment of class Observable explicitly.#10593

Closed
xkszltl wants to merge 1 commit intopytorch:masterfrom
xkszltl:observer
Closed

[Caffe2] Delete copy constructor/assignment of class Observable explicitly.#10593
xkszltl wants to merge 1 commit intopytorch:masterfrom
xkszltl:observer

Conversation

@xkszltl
Copy link
Contributor

@xkszltl xkszltl commented Aug 16, 2018

This should resolves "error C2280: 'std::unique_ptr<caffe2::ObserverBasecaffe2::OperatorBase,std::default_delete<_Ty>> &std::unique_ptr<_Ty,std::default_delete<_Ty>>::operator =(const std::unique_ptr<_Ty,std::default_delete<_Ty>> &)': attempting to reference a deleted function" from Visual Studio.
It should also make error message more human-readable in case if something really messed up.

@xkszltl
Copy link
Contributor Author

xkszltl commented Aug 16, 2018

For #10576

This should resolves "error C2280: 'std::unique_ptr<caffe2::ObserverBase<caffe2::OperatorBase>,std::default_delete<_Ty>> &std::unique_ptr<_Ty,std::default_delete<_Ty>>::operator =(const std::unique_ptr<_Ty,std::default_delete<_Ty>> &)': attempting to reference a deleted function" from Visual Studio.
It should also make error message more human-readable in case if something really messed up.
@xkszltl xkszltl changed the title Delete copy constructor/assignment of class Observable explicitly. [Caffe2] Delete copy constructor/assignment of class Observable explicitly. Aug 20, 2018
Copy link
Contributor

@facebook-github-bot facebook-github-bot left a comment

Choose a reason for hiding this comment

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

mingzhe09088 has imported this pull request. If you are a Facebook employee, you can view this diff on Phabricator.

PenghuiCheng pushed a commit to PenghuiCheng/pytorch that referenced this pull request Sep 11, 2018
…ytorch#10593)

Summary:
This should resolves "error C2280: 'std::unique_ptr<caffe2::ObserverBase<caffe2::OperatorBase>,std::default_delete<_Ty>> &std::unique_ptr<_Ty,std::default_delete<_Ty>>::operator =(const std::unique_ptr<_Ty,std::default_delete<_Ty>> &)': attempting to reference a deleted function" from Visual Studio.
It should also make error message more human-readable in case if something really messed up.
Pull Request resolved: pytorch#10593

Reviewed By: orionr

Differential Revision: D9436397

Pulled By: mingzhe09088

fbshipit-source-id: 31711667297b4160196134a34365da734db1c61d
@xkszltl xkszltl deleted the observer branch January 3, 2019 02:21
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.

6 participants