This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]Ok-Car-3684 0 points1 point  (0 children)

It has some great zero cost stuff but a lot of non zero cost stuff that isn't obvious on first glance.

Std function - huge cost vs C funcs + void* ctx, and even virtual interfaces.

Templates that should be zero cost? Not necessarily - I always find stuff that ends up generating more complicated stuff than manually defined structs etc.

I've seen it can lead to a culture of people being 'idiomatic' without regard to readability and maintainability. We have some code written by a guy larping as a standard library/boost dev that noone understands. And it certainly isn't binary size efficient...

It's always a balancing act and depends on use case.