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

"Disable copy and assign from another value, but allow move" #2521

Closed
alexeyr opened this issue Jan 29, 2019 · 2 comments
Closed

"Disable copy and assign from another value, but allow move" #2521

alexeyr opened this issue Jan 29, 2019 · 2 comments

Comments

@alexeyr
Copy link
Contributor

alexeyr commented Jan 29, 2019

This is the comment at https://github.com/dmlc/tvm/blob/1120655b7bc43c8881f982424a986974eeaf75e6/include/tvm/runtime/packed_func.h#L609-L612, but instead of being disabled the copy constructor is declared on the next line (and the assignment operator on https://github.com/dmlc/tvm/blob/1120655b7bc43c8881f982424a986974eeaf75e6/include/tvm/runtime/packed_func.h#L718-L720).

One of them should be removed, but I don't know which (deleting copy constructor explicitly makes compilation fail).

@tqchen
Copy link
Member

tqchen commented Jan 30, 2019

Thanks for pointing it out. The comment should be removed

@tqchen
Copy link
Member

tqchen commented Jan 30, 2019

close by #2527 thanks to @alexeyr

@tqchen tqchen closed this as completed Jan 30, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants