diff --git a/include/adevs_simulator.h b/include/adevs_simulator.h index aa2f442..ed6e53e 100644 --- a/include/adevs_simulator.h +++ b/include/adevs_simulator.h @@ -617,7 +617,7 @@ void Simulator::exec_event(Atomic* model, bool internal, T t) model->delta_ext(t-model->tL,*(model->x)); } // Notify any listeners - notify_state_listeners(model,t); + this->notify_state_listeners(model,t); // Check for a model transition if (model->model_transition() && model->getParent() != NULL) { diff --git a/test/alt_time_tests.cpp b/test/alt_time_tests.cpp index 2409adb..0d0e553 100644 --- a/test/alt_time_tests.cpp +++ b/test/alt_time_tests.cpp @@ -80,10 +80,10 @@ Model::Model(): a(new PingPong(true)), b(new PingPong()) { - add(a); - add(b); - couple(a,b); - couple(b,a); + this->add(a); + this->add(b); + this->couple(a,b); + this->couple(b,a); } // Non-standard type for time class TimeType