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

@ -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;
}
};