void CGoal<T>::accept (VCAI * ai) { ai->tryRealize(static_cast<T&>(*this)); //casting enforces template instantiation }
void AbstractGoal::accept (VCAI * ai) { ai->tryRealize(*this); }