Missing return in operator[]

This commit is contained in:
Dennis Luxen 2011-07-18 14:17:33 +00:00
parent a76cf5cad4
commit fdb46f5445

View File

@ -47,10 +47,8 @@ struct NodeCoords {
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;
} }
}; };