Use correct pointer indirection

When the sim parameter is a pointer to a simulator, we must of course
use indirect access to its field; the shared_ptr template class does not
have this method!
This commit is contained in:
Roland Kaufmann 2013-11-19 14:34:55 +01:00
parent 1baf7369ef
commit 3c10785241

View File

@ -142,7 +142,7 @@ struct SimulatorOutput : public SimulatorOutputBase {
, sim_ (sim) {
// connect simulation with output writer
sim.timestep_completed ().add (*this);
sim->timestep_completed ().add (*this);
}
protected: