boost::geometry union & difference &r-tree error
- Lenguaje dominante
- C++
- Estrellas
- 517
- Forks
- 232
- Métricas de merge de PR
- Sin PR fusionados en 30 d
Descripción
I want to "union" or "clipper" two rectangle but I always get the wrong output.
so I used "fsanitize=undefined" command to check my code, and it report a overflow error.
I think the all points of the tow rectangle in the integer range,so my question is if the points range
will be "long long" How do I define the type of point_xy to make sure it doesn't overflow when I used the function "union_" "difference" , and some time I used boost r-tree will also get the error.



Guía de contribución
Línea de trabajo
Comienza reproduciendo el informe del sanitizer con las coordenadas del rectángulo y el tipo point_xy; después, inspecciona el uso de union_, difference y r-tree mencionado en el issue. Se considera terminado cuando un caso mínimo reproducible determina si el overflow y la salida incorrecta provienen de la biblioteca o del manejo del tipo/rango por parte del llamador, y se identifica el tipo compatible o la corrección.
Escrito por el modelo de indexación a partir del texto del issue.
Evaluación
- Stack tecnológico
- cpp
- Área
- computer-graphics
- Tipo de issue
- Error
- Dificultad
- 4/5
- Tiempo estimado
- 3-5 días
- Estado de actividad
- Estancado
- Claridad
- Necesita aclaración
- Aptitud para principiantes
- 25/100