From 557e6693b560ca491f285712081632bf4e93bda9 Mon Sep 17 00:00:00 2001 From: Vladislav Yaroslavlev Date: Thu, 12 Nov 2015 10:44:41 +0300 Subject: [PATCH] Add copy assignment operator to `strided_bounds` `strided_bounds` defines copy constructor, but lacks copy assignment operator --- include/span.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/include/span.h b/include/span.h index 74da1aa..cb045cb 100644 --- a/include/span.h +++ b/include/span.h @@ -685,6 +685,8 @@ public: constexpr strided_bounds(const strided_bounds &) noexcept = default; + constexpr strided_bounds & operator=(const strided_bounds &) noexcept = default; + constexpr strided_bounds(const value_type(&values)[rank], index_type strides) : m_extents(values), m_strides(std::move(strides)) {}