[Boost-bugs] [Boost C++ Libraries] #12106: Assertion in envelope() seems to be wrong

Subject: [Boost-bugs] [Boost C++ Libraries] #12106: Assertion in envelope() seems to be wrong
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2016-03-31 06:43:53


#12106: Assertion in envelope() seems to be wrong
------------------------------+---------------------------
 Reporter: karsten | Owner: barendgehrels
     Type: Bugs | Status: new
Milestone: To Be Determined | Component: geometry
  Version: Boost 1.60.0 | Severity: Problem
 Keywords: |
------------------------------+---------------------------
 Hi,

 the following code stops with an assertion. It seems that the check for
 the aequator in
 algorithms/detail/envelope/segment.hpp:compute_box_corners() is not
 correct.

 {{{
 #include <boost/geometry.hpp>
 #include <iostream>

 using namespace std;

 namespace bg = boost::geometry;

 typedef bg::cs::spherical_equatorial< boost::geometry::degree > cs_type;
 typedef bg::model::point< double , 2 , cs_type > point_type;
 typedef bg::model::box< point_type > box_type;
 typedef bg::model::segment< point_type> segment_type;

 int main( int argc , char *argv[] )
 {
     auto segment = segment_type { point_type { 11.488323611111111 ,
 53.687086666666673 } , { 11.488324166666667 , 53.687086666666673 } };
     auto box = box_type {};
     bg::envelope( segment , box );
     return 0;
 }
 }}}

 The problem does not occur in version 1.58 and earlier.

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/12106>
Boost C++ Libraries <http://www.boost.org/>
Boost provides free peer-reviewed portable C++ source libraries.

This archive was generated by hypermail 2.1.7 : 2017-02-16 18:50:19 UTC