I have a class that is defined as:
template <class WidgetType>
class CometWidget : public WidgetType;
Inside the function, I do this:
dynamic_cast<CometWidget *>(iter2->second.second)->changesCommited_();
and it enables the type CometWidget, matches and runs correctly.
The code is executed inside the CometWidget class. How does this happen?
Why is this so? Should it even compile?
source
share