Boost logo

Geometry :

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


Hi Richard,

> 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:
>
> ../../3rd-party/ggl/boost/geometry/iterators/segment_range_iterator.hpp|
> 93|error: ?difference_type? does not name a type|
> ../../3rd-party/ggl/boost/geometry/iterators/segment_range_iterator.hpp|
> 93|note: (perhaps ?typename
> boost::iterator_facade<boost::geometry::segment_range_iterator<Segment>,
> 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?

Regards, Barend


Geometry list run by mateusz at loskot.net