make c'tor of NodeInfo explicit

This commit is contained in:
Dennis Luxen 2014-06-11 18:26:34 +02:00
parent 2d6eae9391
commit 44c6a64bf4

View File

@ -41,7 +41,7 @@ struct NodeInfo
typedef NodeID key_type; // type of NodeID typedef NodeID key_type; // type of NodeID
typedef int value_type; // type of lat,lons 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() NodeInfo()
: lat(std::numeric_limits<int>::max()), lon(std::numeric_limits<int>::max()), : lat(std::numeric_limits<int>::max()), lon(std::numeric_limits<int>::max()),
node_id(std::numeric_limits<unsigned>::max()) node_id(std::numeric_limits<unsigned>::max())