Skip to content

Commit

Permalink
refactor: Make packed_pixel trivially copyable and assignable (#679)
Browse files Browse the repository at this point in the history
  • Loading branch information
marco-langer authored May 28, 2022
1 parent 6d312af commit 98f4971
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions include/boost/gil/packed_pixel.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -61,9 +61,6 @@ struct packed_pixel
packed_pixel() = default;
explicit packed_pixel(const BitField& bitfield) : _bitfield(bitfield) {}

// Construct from another compatible pixel type
packed_pixel(const packed_pixel& p) : _bitfield(p._bitfield) {}

template <typename Pixel>
packed_pixel(Pixel const& p,
typename std::enable_if<is_pixel<Pixel>::value>::type* /*dummy*/ = nullptr)
Expand Down Expand Up @@ -110,12 +107,6 @@ struct packed_pixel
gil::at_c<4>(*this) = chan4;
}

auto operator=(packed_pixel const& p) -> packed_pixel&
{
_bitfield = p._bitfield;
return *this;
}

template <typename Pixel>
auto operator=(Pixel const& p) -> packed_pixel&
{
Expand Down

0 comments on commit 98f4971

Please sign in to comment.