2
0
mirror of https://github.com/boostorg/gil.git synced 2026-02-18 14:12:10 +00:00
Commit Graph

2 Commits

Author SHA1 Message Date
Mateusz Loskot
a1c966dd9b Fix point<T> divide and multiply to not to hardcode result as point<double> (#157)
The free variants of operator/ and operator* now yield new
type of point<T> with T promoted to type common for both operands.

Add missing member operator*=, for symmetry.
Add template function iround(point<T>) as no-op sink for point
specialisations for T of integer types.
Add explicit casts of arithmetic intermediate results to avoid
compilation warnings.
Replace redundant point<T> construction in return statement with uniform
initialization.
Add static_assert validating range of axis_value integer template parameter.

Update test/point/point.cpp with basic checks of all point<T> members.

Fixes #153
2018-10-24 15:08:39 +02:00
Mateusz Loskot
53dc1a6949 Add basic tests for point<T> (#156) 2018-10-20 16:35:29 +02:00