Compare commits

...

2 Commits

View File

@ -187,8 +187,10 @@ concept floating_point = is_floating_point_v<type_t>;
template <typename input_t, typename output_t> template <typename input_t, typename output_t>
constexpr inline void copy(input_t* start, input_t* end, output_t* dest_start) { constexpr inline void copy(const input_t* start, const input_t* end, output_t* dest_start) {
memcpy(start, dest_start, end - start); auto temp = start;
while (temp != end)
*(dest_start++) = *(temp++);
} }
@ -235,13 +237,10 @@ public:
} }
constexpr array() noexcept = default; constexpr array() noexcept = default;
constexpr array(const array&) = default;
constexpr array(array&) = default;
constexpr array(array&&) = default; constexpr array(array&&) = default;
constexpr array& operator=(array& other) = default; constexpr array& operator=(array& other) = default;
constexpr array& operator=(array&& other) = default; constexpr array& operator=(array&& other) = default;
constexpr void swap(array<data_t, t_size>& other) noexcept { constexpr void swap(array<data_t, t_size>& other) noexcept {