## #11711 closed Bugs (fixed)

# is_simple and is_valid - Points that are NaN or Infinity

Reported by: | Owned by: | Barend Gehrels | |
---|---|---|---|

Milestone: | Boost 1.60.0 | Component: | geometry |

Version: | Boost 1.58.0 | Severity: | Problem |

Keywords: | Cc: |

### Description

A point that has a value in it that is NaN or Infinity is still considered valid and simple by is_simple and is_valid. It would seem to me that this would be neither simple or valid.

### Change History (2)

### comment:1 Changed 3 years ago by

Milestone: | To Be Determined → Boost 1.60.0 |
---|---|

Resolution: | → fixed |

Status: | new → closed |

### comment:2 Changed 3 years ago by

The GitHub? PR does not really address is_simple, but rather only is_valid. As for any Boost.Geometry algorithm (except is_valid and correct) the input is assumed to be valid. In that sense addressing the reported bug for is_simple is somehow irrelevant.

**Note:**See TracTickets for help on using tickets.

The ticket has been addressed in GitHub? PR 335: https://github.com/boostorg/geometry/pull/335