Subject: [ggl] difference_typeâ does not name a type in segment_range_iterator.hpp
From: Barend Gehrels (barend.gehrels)
Date: 2010-08-16 03:37:59
> I saw the compiler warnings from time to time that I used an obsolete
> version of ggl.
> But now that I wanted to use comparable_distance, and realized that it
> was not available in that old version, I finally upgraded.
Yes, comparable_distance is new.
> But now after changing all the includes and namespaces and the few other
> thingies, the following compiler error remains:
> 93|error: ?difference_type? does not name a type|
> 93|note: (perhaps ?typename
> const typename boost::geometry::point_type<Geometry>::type,
> boost::random_access_traversal_tag, const typename
> boost::geometry::point_type<Geometry>::type&, long
> int>::difference_type? was intended)|
> ||=== Build finished: 1 errors, 0 warnings ===|
My compilers (gcc & msvc) didn't report this. But it obviously should be
there indeed. I defined it now.
Which compiler do you use?
Saw also your last mail about not including geometry.hpp, is it now
working if you include it?
> Do I have to define some traits for boost::geometry::point_ll_deg
> myself, or do I have to include another header file?
That should not be necessary. Does it gives you problems?
Geometry list run by mateusz at loskot.net