implemented operator= for different sized array
This commit is contained in:
parent
5ed9fd9146
commit
70e2108501
|
|
@ -68,7 +68,7 @@ namespace cc {
|
||||||
constexpr const_vector<T, N>& operator=(const_vector&& other) noexcept;
|
constexpr const_vector<T, N>& operator=(const_vector&& other) noexcept;
|
||||||
template <std::size_t N2>
|
template <std::size_t N2>
|
||||||
constexpr const_vector<T, N>& operator=(const_vector<value_type, N2>&& other);
|
constexpr const_vector<T, N>& operator=(const_vector<value_type, N2>&& other);
|
||||||
//constexpr const_vector<T, N>& operator=(const value_type (&array)[N]) noexcept; // not needed as functionally equivalent to templated overload
|
//constexpr const_vector<T, N>& operator=(const value_type (&array)[N]) noexcept; // not needed as functionally equivalent to templated overload, could be noexcept though
|
||||||
template <std::size_t N2>
|
template <std::size_t N2>
|
||||||
constexpr const_vector<T, N>& operator=(const value_type (&array)[N2]);
|
constexpr const_vector<T, N>& operator=(const value_type (&array)[N2]);
|
||||||
constexpr const_vector<T, N>& operator=(std::initializer_list<value_type> values);
|
constexpr const_vector<T, N>& operator=(std::initializer_list<value_type> values);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue