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