Missing return in operator[]
This commit is contained in:
parent
a76cf5cad4
commit
fdb46f5445
@ -39,18 +39,16 @@ struct NodeCoords {
|
|||||||
NodeT id;
|
NodeT id;
|
||||||
|
|
||||||
static NodeCoords<NodeT> min_value()
|
static NodeCoords<NodeT> min_value()
|
||||||
{
|
{
|
||||||
return NodeCoords<NodeT>(-90*100000,-180*100000,numeric_limits<NodeT>::min());
|
return NodeCoords<NodeT>(-90*100000,-180*100000,numeric_limits<NodeT>::min());
|
||||||
}
|
}
|
||||||
static NodeCoords<NodeT> max_value()
|
static NodeCoords<NodeT> max_value()
|
||||||
{
|
{
|
||||||
return NodeCoords<NodeT>(90*100000, 180*100000, numeric_limits<NodeT>::max());
|
return NodeCoords<NodeT>(90*100000, 180*100000, numeric_limits<NodeT>::max());
|
||||||
}
|
}
|
||||||
|
|
||||||
value_type operator[](size_t n) const
|
value_type operator[](size_t n) const {
|
||||||
{
|
switch(n) {
|
||||||
switch(n)
|
|
||||||
{
|
|
||||||
case 1:
|
case 1:
|
||||||
return lat;
|
return lat;
|
||||||
break;
|
break;
|
||||||
@ -62,6 +60,8 @@ struct NodeCoords {
|
|||||||
return UINT_MAX;
|
return UINT_MAX;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
assert(false);
|
||||||
|
return UINT_MAX;
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user