mirror of
https://github.com/boostorg/gil.git
synced 2026-02-15 13:12:11 +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:
@@ -86,8 +86,8 @@ BOOST_AUTO_TEST_SUITE(GIL_Tests)
|
||||
|
||||
BOOST_AUTO_TEST_CASE(recreate_image_test)
|
||||
{
|
||||
auto tasib_1 = total_allocated_size_in_bytes< rgb8_view_t, false >( point2< rgb8_view_t::coord_t >( 640, 480 ) );
|
||||
auto tasib_2 = total_allocated_size_in_bytes< rgb8_view_t, false >( point2< rgb8_view_t::coord_t >( 320, 200 ) );
|
||||
auto tasib_1 = total_allocated_size_in_bytes<rgb8_view_t, false>({640, 480});
|
||||
auto tasib_2 = total_allocated_size_in_bytes<rgb8_view_t, false>({320, 200});
|
||||
|
||||
rgb8_image_t img( 640, 480 );
|
||||
img.recreate( 320, 200 );
|
||||
|
||||
Reference in New Issue
Block a user