C++ Templates - Part 4 : Curiously Recurring Template Pattern

preview_player
Показать описание

Рекомендации по теме
Комментарии
Автор

Man. Someone is loving their cherry blues in the background

momusmomus
Автор

Goddamn this is the clearest explanation of crtp I've ever seen. 👍👍

pmcgee
Автор

Wow I just finished watching your c++ series and it's just spectacular!! I wish you would do more videos like these...

Jacklawi
Автор

CRTP ----> Whenever a class/struct seems to use something which is templatized on itself.

testshar
Автор

You can even create a paid course on Udemy. I won't mind buying one access.

tmmuttathara
Автор

Your explanations are excellent! Please make more of these!

alek
Автор

Hello Sir, I really like your way of explaining these advanced C++ topics and would love to see you in my subscription box again! (:

sebastianwilke
Автор

Hello very nice Videos, Please make more videos, Thanks

Ravikiran
Автор

Hello, very interesting and useful content. Please make a tutorial on multi-threading and parallel programming.

tmmuttathara
Автор

thank you so much for making this so easy to follow

essmunson
Автор

Please make more videos!! You`re a good Thanks.

igoryungkee
Автор

Can someone explain the memory deletion process her ? how should clean what have been created inside the template?

amrtcpp
Автор

Nice video.
Why is it not possible to Change the line to:
virtual Shape* Clone() override { return new T(static_cast<T>(*this); }
?

TVStrikers
Автор

but it is still virtual, what's point ? it only helps you write code like macro does

notebook
Автор

What's the point of using CRTP if you are gonna make virtual function calls?

yc
Автор

_Says is going to make an abstract base class, proceeds to not make an abstract base class and then instantiates it_
If you had actually made an abstract base class, the code wouldn't have compiled.

khatdubell
Автор

This usage of CRTP is not correct. First it creates unnecessary bloat code. Second this is being taught with an idea behind polymorphism which is very wrong if CRTP is used this way since polymorphism was just created for the purpose it has. Consider looking at CRTP as a mixin but compilated and provided through a particular interface.

vladimirchudyk
Автор

Why does he have such a low subscriber count

sonulohani
Автор

The main advantage of using CRTP is the LACK of virtualisation. What you've shown is a special case in which the virtualisation is beneficial, but this is not the main point of the CRTP. I have to thumb it down for being somewhat misleading. People are trying to learn programming from you, and I am sure you have good will, but if you want to cover such broad topic, don't make a short video about it. It's like explaining to someone how to use a car by pouring fuel to the tank - you show a useful part of maintaining the car, but where's the driving part?

ashrasmun