Got rid of the reinterpret_casts

This commit is contained in:
Patrick Urbanke
2024-01-03 17:40:42 +01:00
parent fe441a2d9d
commit d6f3fa510d
3 changed files with 38 additions and 80 deletions
-2
View File
@@ -16,8 +16,6 @@ struct Array {
Array() = default;
Array(const StdArrayType &_arr) : arr_(_arr) {}
Array(StdArrayType &&_arr) : arr_(std::move(_arr)) {}
Array(const T &_t) : arr_(reinterpret_cast<const StdArrayType &>(_t)) {}
Array(T &&_t) : arr_(reinterpret_cast<StdArrayType &&>(_t)) {}
~Array() = default;