Skip to content

Overload of test_commuters depends on provided Simulation #1385

@julianlitz

Description

@julianlitz

Bug description

There appears to be an inconsistency in overload resolution for test_commuters depending on how mio::Graph is instantiated.

Observed behavior

If we define the graph in examples/ode_secir_graph.cpp as:

mio::Graph<mio::SimulationNode<FP, mio::osecir::Simulation<FP>>, mio::MobilityEdge<FP>> g;

then the correct test_commuters overload of the SECIR model is found (by correcting #1383, #1384).

However, if we instead define it as:

mio::Graph<mio::SimulationNode<FP, mio::Simulation<FP, mio::osecir::Model<FP>>>, mio::MobilityEdge<FP>> g;

the correct SECIR overload of test_commuters is not selected and instead the empty fallback version is used.

Is that intentional or a bug?

Version

Windows

To reproduce

./../build/bin/ode_secir_graph_example

Relevant log output

Add any relevant information, e.g. used compiler, screenshots.

Checklist

  • Attached labels, especially loc:: or model:: labels.
  • Linked to project

Metadata

Metadata

Assignees

Labels

class::discussionUsed for discussions on software and model .

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions