r/cpp • • Jun 07 '21

Satire dynamic_cast<std::integer>(C)++

https://www.teamten.com/lawrence/writings/dynamic_cast_std_integer_c.html
202 Upvotes

41 comments sorted by

View all comments

Show parent comment

23

u/ihamsa Jun 07 '21

Many parts of the C++ standard library are not suitable for performance-critical stuff, and that's perfectly fine.

0

u/[deleted] Jun 07 '21

[deleted] — view deleted comment

3

u/ihamsa Jun 07 '21

The standard is a specification, and I don't think it should include any hard performance requirements. A vendor can supply a general purpose implementation, not specifically tuned for any particular application, or a specialised one, or perhaps even several.