Тёмный
No video :(

GoingNative 2013 Inheritance Is The Base Class of Evil 

25msr
Подписаться 3,7 тыс.
Просмотров 7 тыс.
50% 1

Опубликовано:

 

27 авг 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 7   
@ashrasmun1
@ashrasmun1 5 лет назад
20:30 No wonder he has no "copy" in the output if he removed it from the code :D
@allopeth
@allopeth 5 лет назад
Isn't that "polymorphic type" precisely just a variant?
@satyamtiwary5276
@satyamtiwary5276 3 года назад
kindly answer this someone ^
@jasoncole7711
@jasoncole7711 2 года назад
It's effectively a variant which embodies a self-contained polymorphic draw function.
@adamnevraumont4027
@adamnevraumont4027 2 года назад
A variant is one of a closed set of types. This is one of an open set of types that support a particular operation.
@boogly3716
@boogly3716 7 месяцев назад
​@@adamnevraumont4027 For anyone as dumb as me, i translate their comment into even more easy one: std::variant has to know all the types it will contain, because we provide them in std::variant's declaration. This is a closed set. Type erasure (technique shown in vid) doesn't have to know all its types. It has to know some common operations they can perform. The first restricts types, but doesn't - operations The second restricts operations, but doesn't - types
@badnoodlez
@badnoodlez 2 месяца назад
this is effectively a constrained std::any -- I previously implemented Any using this form of type erasure.
Далее
Better Code: Runtime Polymorphism - Sean Parent
57:33
GoingNative 2013 C++ Seasoning
1:17:12
Просмотров 47 тыс.
I Took a LUNCHBAR OFF A Poster 🤯 #shorts
00:17
Просмотров 5 млн
Better Code: Concurrency - Sean Parent
1:07:36
Просмотров 27 тыс.
CppCon 2015: Sean Parent "Better Code: Data Structures"
1:04:00
Better Code: Relationships - Sean Parent - CppCon 2019
1:19:31
CppCon 2018: Jason Turner “Applied Best Practices”
1:03:19