Boost logo

Geometry :

Subject: Re: [geometry] Rtree comparable_distance
From: Adam Wulkiewicz (adam.wulkiewicz_at_[hidden])
Date: 2017-05-30 13:28:59

Hi Tarik,

Turokhunter Via Geometry wrote:
> Hi Everyone,
> I'm trying to change the distance function for RTree. I have looked into the
> online version of the mailing list and found a post that helped me get
> started :
> <>
> .
> I followed the steps in that post but the comparable_distance function I
> wrote doesn't get triggered. I was wondering if anyone knew the reason why.

With some compilers (e.g. gcc) the order of includes and overloads
matters. The default comparable_distance() is compiled instead of
overloads defined by you. You can work around it by first including GLM
and defining your overloads of bg::comparable_distance() and after that
including boost geometry, registering point and proceed normally.


Geometry list run by mateusz at