[contrib][pzstd] Fix build issue with gcc-5
gcc-5 didn't like the l-value overload for defaulted operator=. There is no reason it needs to be l-value overloaded, so just remove it. I'm not sure why the build broke for @mckaygerhard in Issue #2811, since this code hasn't changed since it was added. But, there is no harm in fixing it. Fixes issue #2811.
This commit is contained in:
@@ -45,7 +45,7 @@ class Buffer {
|
|||||||
: buffer_(buffer), range_(data) {}
|
: buffer_(buffer), range_(data) {}
|
||||||
|
|
||||||
Buffer(Buffer&&) = default;
|
Buffer(Buffer&&) = default;
|
||||||
Buffer& operator=(Buffer&&) & = default;
|
Buffer& operator=(Buffer&&) = default;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Splits the data into two pieces: [begin, begin + n), [begin + n, end).
|
* Splits the data into two pieces: [begin, begin + n), [begin + n, end).
|
||||||
|
|||||||
@@ -83,8 +83,8 @@ class Range {
|
|||||||
Range(const Range&) = default;
|
Range(const Range&) = default;
|
||||||
Range(Range&&) = default;
|
Range(Range&&) = default;
|
||||||
|
|
||||||
Range& operator=(const Range&) & = default;
|
Range& operator=(const Range&) = default;
|
||||||
Range& operator=(Range&&) & = default;
|
Range& operator=(Range&&) = default;
|
||||||
|
|
||||||
constexpr size_type size() const {
|
constexpr size_type size() const {
|
||||||
return e_ - b_;
|
return e_ - b_;
|
||||||
|
|||||||
Reference in New Issue
Block a user