2
0
mirror of https://github.com/boostorg/gil.git synced 2026-02-01 20:42:10 +00:00

Rename point2<T> to point<T> (#155)

Add point2<T> alias template for backward compatibility with Boost <=1.68.
Replace multiple point_t aliases of point<ptrdiff_t> with single defined
in point.hpp. The point_t is common used to represent dimensions.
Replace many uses of point<ptrdiff_t> with point_t.

Apply reformatting around point2 changes to respect the line length limit.

Follows up discussion in #154
This commit is contained in:
Mateusz Loskot
2018-10-19 09:32:23 +02:00
committed by GitHub
parent b4c3a69479
commit ce82941fa2
37 changed files with 638 additions and 627 deletions

View File

@@ -19,7 +19,7 @@ using namespace std;
void test_pixel_iterator()
{
boost::function_requires<Point2DConcept<point2<int> > >();
boost::function_requires<Point2DConcept<point<int>>>();
boost::function_requires<MutablePixelIteratorConcept<bgr8_ptr_t> >();
boost::function_requires<MutablePixelIteratorConcept<cmyk8_planar_ptr_t> >();
@@ -249,7 +249,7 @@ void test_pixel_iterator() {
xy_locator.x()++;
// memory_based_step_iterator<rgb8_pixel_t>& yit=xy_locator.y();
xy_locator.y()++;
xy_locator+=point2<std::ptrdiff_t>(3,4);
xy_locator+=point<std::ptrdiff_t>(3,4);
// *xy_locator=(xy_locator(-1,0)+xy_locator(0,1))/2;
rgb8_pixel_t& rf=*xy_locator; ignore_unused_variable_warning(rf);