-
Notifications
You must be signed in to change notification settings - Fork 2.3k
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
[Refactor] Deprecate Expr::operator= #3596
Conversation
Signed-off-by: Jun <jun@junz.org>
✔️ Deploy Preview for jovial-fermat-aa59dc ready! 🔨 Explore the source changes: 4df5936 🔍 Inspect the deploy log: https://app.netlify.com/sites/jovial-fermat-aa59dc/deploys/61a19831c9c62d000768c812 😎 Browse the preview: https://deploy-preview-3596--jovial-fermat-aa59dc.netlify.app |
/format |
/format |
Signed-off-by: Jun <jun@junz.org>
e556af4
to
bcee1b1
Compare
/format |
Hmm, a few test failed. I guess this PR doesn't really cover all the usage of |
It is very interesting... Because I found all usages by following
|
Ah, this could very likely be the reason (https://stackoverflow.com/a/3272731/12003165 says that "as of C++11, standard containers all use copy/move constructors for non-assignment operations (like push_back)", but doesn't say how vector's |
Thanks very much for your comment! I'm willing to dig into this issue and try my best to solve it, but it may take some time as I find some build and test problems( Don't worry, I'll figure it out. BTW, can this annoying issue be used as another argument that we should switch to Rust? (Hahaha, just kidding 🤣 |
I'd love to be able to use Rust :-) It's just that the tech stack (mainly the GPU stuff) Taichi depends on is not that mature |
Don't be too serious about this joke 🤣 I know nothing about rust, of course C++ is the same |
007fbe0
to
2c89d28
Compare
Signed-off-by: Jun <jun@junz.org>
Signed-off-by: Jun <jun@junz.org>
Emmm... I try to mark
That's little scary... I think it may be too hard to completely disable What's your idea? @k-ye |
Sorry about the mess in In the long run, since |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
My bad. Didn't realize that this was a lot harder than expected. Thanks for pinning the problems!
In my opinion, maybe we can offer two methods set_or_assign and operator=, like what we did in 5392e9e, so the existing code wouldn't broke.
Sounds great!
This reverts commit bcee1b1. Signed-off-by: Jun <jun@junz.org>
Signed-off-by: Jun <jun@junz.org>
Signed-off-by: Jun <jun@junz.org>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sorry about the delay, LGTM!
Signed-off-by: Jun jun@junz.org
Related issue = #2684