Skip to content

Conversation

@umanwizard
Copy link
Contributor

@umanwizard umanwizard commented Nov 21, 2018

The lines removed in this diff were no-op, but confusing: the default constructors in store_handler.h are implicitly deleted, since std::runtime_error has no default constructor.

Clang added a warning for this behavior in September 2018 (note that the warning is not just for cxx2a, despite the slightly confusing commit message), so building pytorch with a recent build of clang trunk causes spew of this warning, which is fixed by the present PR.

@ezyang
Copy link
Contributor

ezyang commented Nov 23, 2018

@smessmer could you please review this

@ezyang ezyang requested a review from smessmer November 23, 2018 21:38
Copy link
Contributor

Choose a reason for hiding this comment

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

This should be deleted instead. I actually have a diff out fixing this already, see #14429

@umanwizard
Copy link
Contributor Author

@smessmer thanks, in that case it seems only the changes to those exception classes are needed, since your diff takes care of the issue for TensorImpl.

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.

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

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants