I missed my class on templates so came here. Damn. Sir you never fail to impress me ! I just love how concise the explanation is! The way you show the wrong way of doing things with the code is so amazing! Thanks a lot!!!
The constant expression’s value can be set once at runtime, but not changed afterwards. So, the behavior exhibited in the this example is more from the compiler’s interpretation of what it means to handle arrays in particular. The constant expression limitation on array length stems from the inherent characteristic of arrays themselves. So, if console in was assigning a vale to variable x at runtime, and then that variable value was being assigned to constant x afterwards, then the value of constant x could actually be used by the template successfully, however in this example, we are not assigning a value to an uninitialized constant to handle the operation.
I missed my class on templates so came here. Damn. Sir you never fail to impress me ! I just love how concise the explanation is! The way you show the wrong way of doing things with the code is so amazing! Thanks a lot!!!
Thank you for the positive feedback Aditya! I'm glad to hear the video helped you out. :-)
Man, I love the way you explain things!.
I’m glad you’re enjoying the explanations! :-)
I’m glad I clicked on your video. Your page looks full of useful code! Looking forward to it. And great video you have here too!
This is very helpful. Clearly explained and shown in good resolution. Thank you for your service!
You got a new subscriber.
Simple and straightforward
Welcome aboard Abubakar! :-) I’m glad you enjoyed it!
Fantastic explanation, thanks! Even easy to understand as a complete beginner
Thank you. The structure and tempo of your explanation were exactly right :)
You're welcome, I'm glad you enjoyed it! :-D
Awesome tutorial, very clean and super easy to follow 👌👌
I’m glad you found it easy to follow! :-)
The constant expression’s value can be set once at runtime, but not changed afterwards. So, the behavior exhibited in the this example is more from the compiler’s interpretation of what it means to handle arrays in particular. The constant expression limitation on array length stems from the inherent characteristic of arrays themselves. So, if console in was assigning a vale to variable x at runtime, and then that variable value was being assigned to constant x afterwards, then the value of constant x could actually be used by the template successfully, however in this example, we are not assigning a value to an uninitialized constant to handle the operation.
Question. Why can length variable initialized array in this case? Because when I try to make an array it never takes variables only ints.
Absolutely fanstatic!
You are an amazing teacher.
thank you so much for puuting the hard work in making these courses.
You're very welcome, I'm glad to hear that you enjoy the videos! :-)
🔴🔴🔴
Why we put (and) in at() function ?
Precise and to the point explanation! Thanks for that :))
You're very welcome, I'm glad you enjoyed it! :-)
Nice explanation...👍 Very clear and useful... Thank you...🙏
You're welcome, that's great to hear that you enjoyed the explanation! :-)
I have no words to thank you ❤❤
Thank you kevin. For everything.
You’re very welcome Yiğit! :-D
You are great , man .....
Thank you for this video, we have a book to teach us this in my school but it is so confusing compared to this
coooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooool thanks
You’re welcome! :-)
Really useful. Thanks a lot!!!
You're welcome Kevin, I'm glad you found it useful! :-)
This video is class!
Hahahaha
Sir excuse me if I am being stupid, but was this example representing a template function or a template class?
template class clearly
Thank you so much!
Finally I get it. Tank you so much!
You're welcome Adam! 🙂
template
void gratitude (T x)
{
std::cout
Thanks mate!
You're welcome! :-)
what compiler are you using??????
In this video I am using Xcode on a Mac. :-)
7:05 thx!
You’re welcome! :-)