Boost logo

Geometry :

Subject: [geometry] breaking change on transform strategies
From: Barend Gehrels (barend_at_[hidden])
Date: 2013-08-12 17:44:52


As a follow-up of the new approach on strategies, started by Bruno (see
earlier mail about distance strategies), the transform strategies are
now also updated. This means the point-type are not template-parameter
of the strategy anymore, but of the member-method apply.

In most use-cases, as a library user, you have to do nothing. So
probably everything will compile. Also if you are using the transform
algorithm, it will work. Also if you are using svg_mapper (using
underlying transformations), it will work.

If you specify transformation strategies explicitly, such as translate,
scale or rotate, or the map transformer or the inverse transformer,
please update the source. Instead of the two point-types, specify the
calculation-type (usually double) and the dimensions (often 2). The same
strategy will now work for any point-type. If you don't update the
sources, you will get a compilation error, so you will be reminded.

Related changes:
- the svg mapper will now accept any point-type (because transformation
is later bound to point-type)
- the svg mapper now also accepts integer point-types

Regards, Barend

Geometry list run by mateusz at