-
-
Notifications
You must be signed in to change notification settings - Fork 240
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
std::move redundant?? #601
Comments
Hello @amutamil, thanks for your feedback! Without a minimal working example, this is tough to say. In a quick example, I drafted (https://cppinsights.io/s/f4c0dc68), the transformation works as expected. I'm happy to look at your example. Andreas |
Hello @andreasfertig , please refer this example https://cppinsights.io/s/647ccf1d, Regards, |
Hello @amutamil, thanks for sharing the code. Please have a close look at our two different versions. My In short, C++ Insights does what it is supposed to do: show you what's actually happening. I wrote about this in one of my blog posts: andreasfertig.blog/2023/11/why-you-shouldnt-provide-an-empty-destructor/. Andreas |
Hello @andreasfertig, Sorry if I deviated you from the real bug. I saw that video, from that video only I found this bug, the real question is after C++ insights translate
Amutamil E |
Hello @amutamil,
C++ Insights doesn't translate
As I said above,
Andreas |
test t2 =std::move(t);
is compiled totest t2 = test(static_cast<const test &&>(std::move(t)));
in which
isn't it redundant in compiled version ?
so compiled version should be
test t2 = test(static_cast<const test &&>(t));
?The text was updated successfully, but these errors were encountered: