Комментарии:
Very nice explanation. Thanks.
ОтветитьNo kidding, this is the first time this made perfect sense to me, thank you sir. I subscribed to your channel
ОтветитьThank you! Great explanation!
ОтветитьThanks a lot for such excellent content with a beautiful explanation. Kindly share other latest versions too.
Ответитьexcellent
ОтветитьWould be wonderful to upgrade this series to c++20
ОтветитьThanks for this videos! Unitl now I was creating move constructors like it was alchemy
ОтветитьHow does this syntax being ok? "rhs.arr_ = nullptr", while before hand the pointer "arr_ = rhs.arr" is pointing to it?
ОтветитьCompared to other C++ tutorials, this one clearly has the touch of a master.
ОтветитьCan anyone please explain me how constructor is calling with the function calling ?
ОтветитьThis tutorial is fucking great.
ОтветитьCan we just acknowledge how much of a legend this guy is. These tutorials are honking good!
ОтветитьGreat video
Ответитьawesome video. I"ve been learning cpp b/c of the new work. And lots of nuances that I need to learn from a java background.
ОтветитьYou sound like erchito
Ответитьthis video was an ablosute eye opener! thank you so much :)
ОтветитьWith g++ passing a rvalue will perform a copy elision. So we need to disable copy elision in order to see a move constructor called.
Ответитьgreat tutorial, very clearly illustrated, much better than many so called professor.
ОтветитьClear and clean. Thank you!
ОтветитьThank u for your clear explanation, it was very educational.
ОтветитьThank god someone who explained the usage of move constructors without giving the example of push_back for vectors!
Ответитьgood video, very well explained
ОтветитьIt's hard to talk about this when you can't pronounce R nor L
ОтветитьFucking fantastic explanations my dude, I'm super glad I found your video :)
ОтветитьWhy not just use pass by const reference instead of the move semantics?
ОтветитьI have one question, is this useful when you have static arrays?
ОтветитьYou should really run your code time to time to show that it is working. In my code, both foo methods called copy constructor.
ОтветитьI love your tutorials. They are clear and excellent paced.
ОтветитьGreat Video! I understand a lots with you. Thanks so much! (Not important but just mention that I agree with Taras)
ОтветитьExcellent explanation:
1) Explains what lvalue and rvalue are
2) Explains what lvalue reference and rvalue reference are.
3) Explains how they enable function overloading => they will also result in constructor overloading
4) Introduces Move constructor (that will be called implicitly now instead of Copy constructor when dealing with rvalues)
5)
How would you implement those functions?
ОтветитьI have always just used const references
but I might be able to find a use for this, I just don't see any reason to force it's use in my code
How to goal kick lmao
Ответитьfinally the video i was looking for !!!! u r my hero
Ответитьwhere can I download the ppt?
ОтветитьGood explanations on the move semantics ! Thank you !
ОтветитьBo, I'm not sure if it was mentioned in the history of comments, but should you ever redo this (very nice) video, you might want to discuss copy elision. Some viewers may be at a loss to explain why their move constructor does not get called because the compiler is allowed to elude copying (darn smart compilers). Nice work though... Love your videos!
ОтветитьYou, sir, have some of the clearest explanations of the complicated C++11+ examples I've seen - and I've read a lot of them. Thank you for taking your time to make these, I will recommend your channel to others learning C++.
Ответить