> How does shared_ptr work? Reference counting?
Yep.
> What's wrong with using a proper generational moving garbage collector?
Because then you don't have deterministic performance which is necessary in certain contexts–or am I misunderstanding you here?