- Jun 16, 2000
- 30,213
- 12
- 81
Ok, so lets say I have an object of a derived class, which I can then successfully cast as its base class using dynamic_cast. My problem is, how can I then cast that base class back to the derived class? I tried using dynamic_cast, static_cast, and reinterpret_cast, they all give me segmentation faults.