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 : 
<http://boost-geometry.203548.n3.nabble.com/R-tree-query-nearest-nodes-with-torus-distance-strategy-td4026516.html> 
. 

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.

Adam