Skip to content

Commit 98f4971

Browse files
authored
refactor: Make packed_pixel trivially copyable and assignable (#679)
1 parent 6d312af commit 98f4971

File tree

1 file changed

+0
-9
lines changed

1 file changed

+0
-9
lines changed

include/boost/gil/packed_pixel.hpp

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -61,9 +61,6 @@ struct packed_pixel
6161
packed_pixel() = default;
6262
explicit packed_pixel(const BitField& bitfield) : _bitfield(bitfield) {}
6363

64-
// Construct from another compatible pixel type
65-
packed_pixel(const packed_pixel& p) : _bitfield(p._bitfield) {}
66-
6764
template <typename Pixel>
6865
packed_pixel(Pixel const& p,
6966
typename std::enable_if<is_pixel<Pixel>::value>::type* /*dummy*/ = nullptr)
@@ -110,12 +107,6 @@ struct packed_pixel
110107
gil::at_c<4>(*this) = chan4;
111108
}
112109

113-
auto operator=(packed_pixel const& p) -> packed_pixel&
114-
{
115-
_bitfield = p._bitfield;
116-
return *this;
117-
}
118-
119110
template <typename Pixel>
120111
auto operator=(Pixel const& p) -> packed_pixel&
121112
{

0 commit comments

Comments
 (0)