diff --git a/Redcraft.Utility/Source/Public/Containers/ArrayView.h b/Redcraft.Utility/Source/Public/Containers/ArrayView.h index c688177..5b04dd3 100644 --- a/Redcraft.Utility/Source/Public/Containers/ArrayView.h +++ b/Redcraft.Utility/Source/Public/Containers/ArrayView.h @@ -100,19 +100,13 @@ public: template requires (CConvertibleTo) FORCEINLINE constexpr TArrayView(const TStaticArray& InArray) : TArrayView(InArray.GetData().Get(), InArray.Num()) { } - template - FORCEINLINE constexpr TArrayView(const TStaticArray&&) = delete; + /** Constructs an array view that is a view over the array 'InArray'. */ + template requires (CConvertibleTo) + FORCEINLINE constexpr TArrayView(TArray& InArray) : TArrayView(InArray.GetData().Get(), InArray.Num()) { } /** Constructs an array view that is a view over the array 'InArray'. */ - template requires (CConvertibleTo) - FORCEINLINE constexpr TArrayView(TArray& InArray) : TArrayView(InArray.GetData().Get(), InArray.Num()) { } - - /** Constructs an array view that is a view over the array 'InArray'. */ - template requires (CConvertibleTo) - FORCEINLINE constexpr TArrayView(const TArray& InArray) : TArrayView(InArray.GetData().Get(), InArray.Num()) { } - - template - FORCEINLINE constexpr TArrayView(const TArray&&) = delete; + template requires (CConvertibleTo) + FORCEINLINE constexpr TArrayView(const TArray& InArray) : TArrayView(InArray.GetData().Get(), InArray.Num()) { } /** Converting constructor from another array view 'InValue'. */ template requires ((Extent == DynamicExtent || N == DynamicExtent || N == Extent) && CConvertibleTo)