I have a segmentation fault in the following line using dynamic_cast,
but I can't figure out what's wrong with this.
i appreciate if someone can help. I make sure pm is NOT a null pointer
as I step thru the debugger?
Is there some compiler options I need to enable/not disable in order
for dynamic_cast to work?
bool Grouper::handle(Handler* pm, InputList& bdl, ResultList& grl) {
// Segmentation fault in the following line:
AHandler* hfpm = dynamic_cast <AHandler*> ( pm);
}
class Handler {
// a base class
};
class AHandler : public Handler {
};