From 4c65b47f390b3dd3a8e0a80fba38f98c6ff9389f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Maximilian=20Ke=C3=9Fler?= Date: Sat, 4 Nov 2023 17:29:15 +0100 Subject: [PATCH] mark constructor explicit --- graph.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/graph.hpp b/graph.hpp index cca0ea8..afe1f97 100644 --- a/graph.hpp +++ b/graph.hpp @@ -131,7 +131,7 @@ public: The number of nodes in the graph currently cannot be changed. You can only add edges between the existing nodes. **/ - Graph(NodeId const num_nodes); + explicit Graph(NodeId const num_nodes); /** @return The number of nodes in the graph. **/ NodeId num_nodes() const;