Boost C++ Libraries: Ticket #10861: Can't compile rtree.remove in 1.56 and 1.57 (1.55 works fine) https://svn.boost.org/trac10/ticket/10861 <p> See attached file. It can be compiled with boost 1.55 but not in 1.56 and 1.57. </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/10861 Trac 1.4.3 apl@… Tue, 09 Dec 2014 09:10:25 GMT attachment set https://svn.boost.org/trac10/ticket/10861 https://svn.boost.org/trac10/ticket/10861 <ul> <li><strong>attachment</strong> → <span class="trac-field-new">test2.cpp</span> </li> </ul> <p> testcase </p> Ticket Barend Gehrels Tue, 09 Dec 2014 18:32:03 GMT owner changed https://svn.boost.org/trac10/ticket/10861#comment:1 https://svn.boost.org/trac10/ticket/10861#comment:1 <ul> <li><strong>owner</strong> changed from <span class="trac-author">Barend Gehrels</span> to <span class="trac-author">awulkiew</span> </li> </ul> Ticket awulkiew Thu, 11 Dec 2014 22:12:04 GMT status, version changed; resolution set https://svn.boost.org/trac10/ticket/10861#comment:2 https://svn.boost.org/trac10/ticket/10861#comment:2 <ul> <li><strong>status</strong> <span class="trac-field-old">new</span> → <span class="trac-field-new">closed</span> </li> <li><strong>version</strong> <span class="trac-field-old">Boost 1.57.0</span> → <span class="trac-field-new">Boost 1.58.0</span> </li> <li><strong>resolution</strong> → <span class="trac-field-new">fixed</span> </li> </ul> <p> The problem was located in the default bgi::equal_to&lt;&gt; function object. As a workaround a user-defined one could be passed to the rtree: </p> <pre class="wiki">typedef std::pair&lt;GeometryBox, GeometryPolygon * &gt; Value; struct equal_to { bool operator()(Value const&amp; v1, Value const&amp; v2) const { return boost::geometry::equals(v1.first, v2.first) &amp;&amp; v1.second == v2.second; } }; boost::geometry::index::rtree &lt; Value, boost::geometry::index::linear&lt;16&gt;, boost::geometry::index::indexable&lt;Value&gt;, equal_to &gt; rtree; </pre> Ticket awulkiew Thu, 11 Dec 2014 22:12:25 GMT version, milestone changed https://svn.boost.org/trac10/ticket/10861#comment:3 https://svn.boost.org/trac10/ticket/10861#comment:3 <ul> <li><strong>version</strong> <span class="trac-field-old">Boost 1.58.0</span> → <span class="trac-field-new">Boost 1.57.0</span> </li> <li><strong>milestone</strong> <span class="trac-field-old">To Be Determined</span> → <span class="trac-field-new">Boost 1.58.0</span> </li> </ul> Ticket