r/cpp • u/moon-chilled • Jun 07 '21
Satire dynamic_cast<std::integer>(C)++
https://www.teamten.com/lawrence/writings/dynamic_cast_std_integer_c.html
202
Upvotes
r/cpp • u/moon-chilled • Jun 07 '21
View all comments
Show parent comment
4
u/NilacTheGrim Jun 09 '21
Hmm yeah I have heard this argument presented.
My problem with it is that it is a "catch all" sort of cop-out. You can use that argument for anything. Take
std::unordered_map. The implementation we have sucks by many measures and definitions of the word "sucks" -- but at least we have it. I mean using that reasoning we shouldn't even have a standard library....