summaryrefslogtreecommitdiff
path: root/include/libcamera/span.h
diff options
context:
space:
mode:
authorLaurent Pinchart <laurent.pinchart@ideasonboard.com>2020-09-29 03:50:03 +0300
committerLaurent Pinchart <laurent.pinchart@ideasonboard.com>2020-09-30 15:58:56 +0300
commitdcf2a8ce1026d13b16d5cba065dec5c9bb78a0a1 (patch)
tree096382d7bbd3de71a3d25e7cfaf222784d039c20 /include/libcamera/span.h
parent94d2ea59741e0dc77c19454ed924dca1629be734 (diff)
libcamera: span: Use default copy assignemnt operator
The custom implementation of the copy assignment operator is identical to the one the compiler would generate. Replace it by the default. Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Reviewed-by: Paul Elder <paul.elder@ideasonboard.com> Reviewed-by: Niklas Söderlund <niklas.soderlund@ragnatech.se>
Diffstat (limited to 'include/libcamera/span.h')
-rw-r--r--include/libcamera/span.h7
1 files changed, 1 insertions, 6 deletions
diff --git a/include/libcamera/span.h b/include/libcamera/span.h
index 738af6ac..a53a80b8 100644
--- a/include/libcamera/span.h
+++ b/include/libcamera/span.h
@@ -188,12 +188,7 @@ public:
}
constexpr Span(const Span &other) noexcept = default;
-
- constexpr Span &operator=(const Span &other) noexcept
- {
- data_ = other.data_;
- return *this;
- }
+ constexpr Span &operator=(const Span &other) noexcept = default;
constexpr iterator begin() const { return data(); }
constexpr const_iterator cbegin() const { return begin(); }