diff --git a/common/include/villas/graph/directed.hpp b/common/include/villas/graph/directed.hpp index e24ae69bb..646022969 100644 --- a/common/include/villas/graph/directed.hpp +++ b/common/include/villas/graph/directed.hpp @@ -50,10 +50,10 @@ public: using Path = std::list; DirectedGraph(const std::string &name = "DirectedGraph") : - lastVertexId(0), lastEdgeId(0) - { - logger = logging.get(name); - } + lastVertexId(0), + lastEdgeId(0), + logger(logging.get(name)) + { } std::shared_ptr getVertex(VertexIdentifier vertexId) const {