21 Jul
2011
21 Jul
'11
1:12 p.m.
Hello, I play with new boost geometry library. There is thing that I don't understand, possible it is bug. I'm trying to register segment concept. It is struct with fields named "point1" and "point2", that represents endpoints of this segment. I've specified tag, point_type, indexed_access for this struct. And length works fine. But intersection requires that this struct contains fields named "first" and "second". I'm new to this library, so I don't know whether it is bug in library or my code. I've attached minimal c++ file that reproduces the problem. If I uncomment //#define point1 first //#define point2 second all compiles and works fine. Best Regards, Sergey