Does wrapper function accepts only rvalue? Also what would happen if I don't use forward in the inner function?
@Sam-di4wq7 ай бұрын
Man, you have one of the best videos on C++ out there. You make sense and save time. Thank you!
@mehtubbhai97097 ай бұрын
Wow! You explained std::forward in 2.5 mins and I got it! Thx Rupesh 👍
@rishiniranjan17465 ай бұрын
Really ?
@mastermax777725 күн бұрын
What would happen if we took out the forward in this case..?
@0506002425 күн бұрын
Then, whether you call wrapper() with an lvalue like a variable n, or an rvalue like a literal 50, the lvalue version of the inner function will be called in both cases. In the second case, the wrapper function accepts an rvalue reference, but converts it to an lvalue when it calls the inner function.
@deepikapatait68617 ай бұрын
crystal clear explanation and voice too.
@vrishabh077 ай бұрын
I learned a lot about c++ from your videos. Can you please recommend some good books for design patterns, advanced c++ and other topics ?
@CppNuts3 ай бұрын
Never read any book bro, just internet is enough to learn.
@mrinalmadhav81195 ай бұрын
Please continue to upload videos
@badassopenpolling7 ай бұрын
this is usefull. one function catching l value and rvalue
@Souravjaiswl7 ай бұрын
I need some help how to install gcc compiler 13.2.0 or gcc 11.0.1 in window 11 or 10 make a video because my gcc 8.0.1 compiler is not working on c++17 or above please sir help me 🙏 . And thanks for this awesome playlist. ❤