id,summary,reporter,owner,description,type,status,milestone,component,version,severity,resolution,keywords,cc 12342,boost rtree and polygon with adapted point type doesn't compile,soldevelopment1234@…,Barend Gehrels,"I am using boost 1.61 Compiling with VS2015 The following code won't compile. I expect it to --- I think it is the use of the adapter BOOST_GEOMETRY_REGISTER_POINT_2D_GET_SET that is upsetting things. {{{ #include #include #include #include #include #include #include class wxPoint { public: wxPoint(double x, double y) : m_x(x), m_y(y) { } wxPoint() {} double getx() const { return m_x; } double gety() const { return m_y; } void setx(double in) { m_x = in; } void sety(double in) { m_y = in; } private: double m_x; double m_y; }; BOOST_GEOMETRY_REGISTER_POINT_2D_GET_SET( wxPoint, double, boost::geometry::cs::geographic, wxPoint::getx, wxPoint::gety, wxPoint::setx, wxPoint::sety) typedef std::pair value; int main() { boost::geometry::index::rtree< value, boost::geometry::index::quadratic<16> > rtree; wxPoint p(4, 1); rtree.insert(std::make_pair(p, 1)); std::vector result_s; typedef boost::geometry::model::polygon polygon_type; polygon_type poly; boost::geometry::read_wkt( ""POLYGON((2 1.3,2.4 1.7,2.8 1.8,3.4 1.2,3.7 1.6,3.4 2,4.1 3,5.3 2.6,5.4 1.2,4.9 0.8,2.9 0.7,2 1.3)"" ""(4.0 2.0, 4.2 1.4, 4.8 1.9, 4.4 2.2, 4.0 2.0))"", poly); rtree.query(boost::geometry::index::within(poly), std::back_inserter(result_s)); return 0; } }}} compiler output attached as a file",Bugs,closed,Boost 1.62.0,geometry,Boost 1.61.0,Problem,fixed,rtree intersects box polygon,soldevelopment1234@…