
18 May
2010
18 May
'10
2:15 p.m.
AMDG Terry Golubiewski wrote:
I'm trying to use boost::geometry and boost::units together. For some reason boost::geometry doesn't represent the difference of two points as vectors. So, I'm making my own Vector class and defining Vector = Point - Point. The sample program below doesn't compile because I need to tell the units library about the special properties of point subtraction (I think).
The problem is that your operator- can't be found by ADL.
using namespace boost::geometry;
typedef point
Point; <snip> inline Vector operator-(const Point& lhs, const Point& rhs);
In Christ, Steven Watanabe