diff --git a/Redcraft.Utility/Source/Public/Containers/Bitset.h b/Redcraft.Utility/Source/Public/Containers/Bitset.h index c9b6ba0..4f83ca4 100644 --- a/Redcraft.Utility/Source/Public/Containers/Bitset.h +++ b/Redcraft.Utility/Source/Public/Containers/Bitset.h @@ -20,7 +20,7 @@ NAMESPACE_MODULE_BEGIN(Utility) template requires (!CSameAs) using TDefaultBitsetAllocator = TInlineAllocator<(40 - 3 * sizeof(size_t)) / sizeof(InBlockType)>; -template Allocator = TDefaultBitsetAllocator> requires (!CSameAs) +template Allocator = TDefaultBitsetAllocator> requires (CAllocatableObject && !CSameAs) class TBitset { private: diff --git a/Redcraft.Utility/Source/Public/Containers/StaticArray.h b/Redcraft.Utility/Source/Public/Containers/StaticArray.h index f3e2301..956e486 100644 --- a/Redcraft.Utility/Source/Public/Containers/StaticArray.h +++ b/Redcraft.Utility/Source/Public/Containers/StaticArray.h @@ -15,7 +15,7 @@ NAMESPACE_MODULE_BEGIN(Redcraft) NAMESPACE_MODULE_BEGIN(Utility) /** TStaticArray is a container that encapsulates fixed size arrays. */ -template +template requires (!CConst && !CVolatile) struct TStaticArray { private: diff --git a/Redcraft.Utility/Source/Public/Containers/StaticBitset.h b/Redcraft.Utility/Source/Public/Containers/StaticBitset.h index 8e720c4..7830525 100644 --- a/Redcraft.Utility/Source/Public/Containers/StaticBitset.h +++ b/Redcraft.Utility/Source/Public/Containers/StaticBitset.h @@ -25,9 +25,7 @@ using TDefaultBitsetBlockType = NAMESPACE_PRIVATE_END -#if 1 - -template > requires (!CSameAs) +template > requires (!CConst && !CVolatile && !CSameAs) class TStaticBitset { private: @@ -617,8 +615,6 @@ private: }; -#endif - NAMESPACE_MODULE_END(Utility) NAMESPACE_MODULE_END(Redcraft) NAMESPACE_REDCRAFT_END diff --git a/Redcraft.Utility/Source/Public/String/StringView.h b/Redcraft.Utility/Source/Public/String/StringView.h index 8252896..890682d 100644 --- a/Redcraft.Utility/Source/Public/String/StringView.h +++ b/Redcraft.Utility/Source/Public/String/StringView.h @@ -85,7 +85,7 @@ private: public: - using FElementType = TRemoveCV; + using FElementType = T; using FReference = typename FSuper::FReference;