From 44c6a64bf4b52c290ceae9dc6333c5a5a86894f6 Mon Sep 17 00:00:00 2001 From: Dennis Luxen Date: Wed, 11 Jun 2014 18:26:34 +0200 Subject: [PATCH] make c'tor of NodeInfo explicit --- DataStructures/QueryNode.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/DataStructures/QueryNode.h b/DataStructures/QueryNode.h index 8065e84fd..ef92dc640 100644 --- a/DataStructures/QueryNode.h +++ b/DataStructures/QueryNode.h @@ -41,7 +41,7 @@ struct NodeInfo typedef NodeID key_type; // type of NodeID typedef int value_type; // type of lat,lons - NodeInfo(int lat, int lon, NodeID node_id) : lat(lat), lon(lon), node_id(node_id) {} + explicit NodeInfo(int lat, int lon, NodeID node_id) : lat(lat), lon(lon), node_id(node_id) {} NodeInfo() : lat(std::numeric_limits::max()), lon(std::numeric_limits::max()), node_id(std::numeric_limits::max())