mirror of
https://github.com/microsoft/GSL.git
synced 2024-11-03 17:56:43 -05:00
Add copy assignment operator to strided_bounds
`strided_bounds` defines copy constructor, but lacks copy assignment operator
This commit is contained in:
parent
2b2adebde5
commit
557e6693b5
@ -685,6 +685,8 @@ public:
|
|||||||
|
|
||||||
constexpr strided_bounds(const strided_bounds &) noexcept = default;
|
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)
|
constexpr strided_bounds(const value_type(&values)[rank], index_type strides)
|
||||||
: m_extents(values), m_strides(std::move(strides))
|
: m_extents(values), m_strides(std::move(strides))
|
||||||
{}
|
{}
|
||||||
|
Loading…
Reference in New Issue
Block a user