refactor(containers): disable container element types with cv-qualifiers
This commit is contained in:
parent
f54386d102
commit
80238de712
@ -20,7 +20,7 @@ NAMESPACE_MODULE_BEGIN(Utility)
|
||||
template <CUnsignedIntegral InBlockType> requires (!CSameAs<InBlockType, bool>)
|
||||
using TDefaultBitsetAllocator = TInlineAllocator<(40 - 3 * sizeof(size_t)) / sizeof(InBlockType)>;
|
||||
|
||||
template <CUnsignedIntegral InBlockType, CAllocator<InBlockType> Allocator = TDefaultBitsetAllocator<InBlockType>> requires (!CSameAs<InBlockType, bool>)
|
||||
template <CUnsignedIntegral InBlockType, CAllocator<InBlockType> Allocator = TDefaultBitsetAllocator<InBlockType>> requires (CAllocatableObject<InBlockType> && !CSameAs<InBlockType, bool>)
|
||||
class TBitset
|
||||
{
|
||||
private:
|
||||
|
@ -15,7 +15,7 @@ NAMESPACE_MODULE_BEGIN(Redcraft)
|
||||
NAMESPACE_MODULE_BEGIN(Utility)
|
||||
|
||||
/** TStaticArray is a container that encapsulates fixed size arrays. */
|
||||
template <CObject T, size_t N>
|
||||
template <CObject T, size_t N> requires (!CConst<T> && !CVolatile<T>)
|
||||
struct TStaticArray
|
||||
{
|
||||
private:
|
||||
|
@ -25,9 +25,7 @@ using TDefaultBitsetBlockType =
|
||||
|
||||
NAMESPACE_PRIVATE_END
|
||||
|
||||
#if 1
|
||||
|
||||
template <size_t N, CUnsignedIntegral InBlockType = NAMESPACE_PRIVATE::TDefaultBitsetBlockType<N>> requires (!CSameAs<InBlockType, bool>)
|
||||
template <size_t N, CUnsignedIntegral InBlockType = NAMESPACE_PRIVATE::TDefaultBitsetBlockType<N>> requires (!CConst<InBlockType> && !CVolatile<InBlockType> && !CSameAs<InBlockType, bool>)
|
||||
class TStaticBitset
|
||||
{
|
||||
private:
|
||||
@ -617,8 +615,6 @@ private:
|
||||
|
||||
};
|
||||
|
||||
#endif
|
||||
|
||||
NAMESPACE_MODULE_END(Utility)
|
||||
NAMESPACE_MODULE_END(Redcraft)
|
||||
NAMESPACE_REDCRAFT_END
|
||||
|
@ -85,7 +85,7 @@ private:
|
||||
|
||||
public:
|
||||
|
||||
using FElementType = TRemoveCV<T>;
|
||||
using FElementType = T;
|
||||
|
||||
using FReference = typename FSuper::FReference;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user