Boost logo

Geometry :

Subject: [ggl] RE: A few Boost.Geometry questions
From: Simonson, Lucanus J (lucanus.j.simonson)
Date: 2010-09-24 11:49:02


Bruno Lalande wrote:
...
> typedef GeometryPath MyLineString;
> typedef GeometryPath MyPolygon;
>
> Then, adapt MyLineString to the LineString concept, MyPolygon to the
> Polygon concept, etc... And always instanciate a MyLineString or a
> MyPolygon instead of a GeometryPath, so that all the compile-time
> mechanisms Boost.Geometry relies on can do their job. Am I missing
> something?

Yes. Typedefs do not create new types. MyLineSTring and MyPolygon are the same type by two different names.

I'm also not sure what variant does for him since his class is already behaving like a variant.

Regards,
Luke


Geometry list run by mateusz at loskot.net