cxx: add manager registry

Manager registry found out to be required by !578 (merged)

Basic idea: only have one static instance that holds all the static managers we have. Then we always construct them in the correct order and also destruct them in the correct order.

@simonspa input on location / namespace is welcome, don't like it as is.

Merge request reports

Loading