Avoid inf recursion in geometry::is_empty
This commit is contained in:
parent
f96744c0e2
commit
928ebad6b9
1 changed files with 9 additions and 1 deletions
|
@ -70,11 +70,19 @@ struct geometry_is_empty
|
|||
{
|
||||
return geom.empty();
|
||||
}
|
||||
|
||||
template <typename T>
|
||||
bool operator() (T const& geom) const
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
};
|
||||
|
||||
}
|
||||
|
||||
inline bool is_empty(mapnik::geometry::geometry const& geom)
|
||||
template <typename GeomType>
|
||||
inline bool is_empty(GeomType & geom)
|
||||
{
|
||||
return detail::geometry_is_empty()(geom);
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue