typeid and dynamic_cast without touching compiler and linker? If I cant its weird that this exercise is in Stroustrups book "C++ Programming Language"!dynamic_cast, its about making some system that works in similar way| Consider how dynamic_cast might be implemented. Define and implement a dcast template that behaves like dynamic_cast but relies on functions and data you define only. Make sure that you can add new classes to the system without having to change the definitions of dcast or previously-written classes. |