Boost logo

Geometry :

Subject: [ggl] Surprising ADL
From: Barend Gehrels (barend.gehrels)
Date: 2010-05-07 16:47:22


Hi ZhouShuangJiang,

>
> Furthermore, I am not so clear about what kind of UDT can be used as
> coordinate type. From my point of view, it seems the lib suppose the
> standard arithmetic operations are supported for all the built-in
> type(especially, floating point types). And the UDT is based on such
> assumption. For example, if user uses some fixed point type as
> coordinate type, and expects the lib to act upon the fixed point
> arithmetic(coming with the fixed point type), he will not get what he
> wants(e.g., distance algorithm won't compile, since there is no proper
> result type).
>
I tested many with ttmath, it needs a stub / Math Binding, but then it
works really good. See also Bruno's mail.

Regards, Barend


Geometry list run by mateusz at loskot.net