-
Notifications
You must be signed in to change notification settings - Fork 26.3k
Cleanup C10::Scalar stringification #73462
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
Conversation
Summary: Because `operator<<` for Scalar is in `namespace at`, overload resolution fails very outside of `at`. By moving to `c10`, `namespace c10` will be included in the candidates due to the Scalar arg. I also didn't a good reason for the definition to be inline, and we're missing a `toString` overload so I added one. Test Plan: Template deduction during compile should be sufficient. Differential Revision: D34483818 fbshipit-source-id: 9f90b3e0d5b50d74d41b98c4dec978a335413c76
CI Flow Status⚛️ CI FlowRuleset - Version:
|
🔗 Helpful links
💊 CI failures summary and remediationsAs of commit 0055e7f (more details on the Dr. CI page): 💚 💚 Looks good so far! There are no failures yet. 💚 💚 This comment was automatically generated by Dr. CI (expand for details).Please report bugs/suggestions to the (internal) Dr. CI Users group. |
|
This pull request was exported from Phabricator. Differential Revision: D34483818 |
Summary: Pull Request resolved: #73462 Because `operator<<` for Scalar is in `namespace at`, overload resolution fails very outside of `at`. Moving to `c10` fixes this because `namespace c10` will be included in the candidates due to the Scalar arg. I also didn't a good reason for the definition to be inline, and we're missing a `toString` overload so I added one. Test Plan: Template deduction during compile should be sufficient. Reviewed By: ezyang Differential Revision: D34483818 fbshipit-source-id: 24007dde32db447046266c17517f62a2ac4b29cc
|
Hey @robieta. |
Summary: Because
operator<<for Scalar is innamespace at, overload resolution fails very outside ofat. By moving toc10,namespace c10will be included in the candidates due to the Scalar arg. I also didn't a good reason for the definition to be inline, and we're missing atoStringoverload so I added one.Test Plan: Template deduction during compile should be sufficient.
Differential Revision: D34483818