Is the C++ standard library tied to the compiler or can a different implementation be provided?
I wonder about this mostly because it seems that the relation between the typeid keyword and std::type_info hinders this. The typeid keywords depends on the existence of std::type_info, which I would consider to be a dependency in the wrong direction. And I have no idea how a custom implementation should implement the type_info::name() method.
My questions are:
- Is the standard library replaceable?
- If yes, then how does one implement
std::type_info