Boost logo

Geometry :

Subject: Re: [geometry] Using Boost.Geometry with a legacy class hierarchy
From: Barend Gehrels (barend_at_[hidden])
Date: 2012-02-20 13:21:34

Hi Mats,

On 20-2-2012 9:03, Mats Taraldsvik wrote:
> The object hierarcy is a bit more complex than my current example
> (also contains 2d, 3d points, curves etc.), and objects are stored in
> pointer to base/super-containers. Therefore, I can't remove the
> pointer requirement, I'm afraid. I guess creating separate pointer and
> non-pointer specializations (e.g. point_type and point_type_ptr) since
> they are so different, means either a lot of duplicated code, or a
> very difficult problem...
> I was also hoping to overcome the pointer-to-base container issue
> also, but thought it was best to take one step at a time. :)

OK, so the first solution I mailed is still based on pointers. Does that
work for you?

Regards, Barend

Geometry list run by mateusz at