Collections type aliasing fix

This one is debatable. It follows modern C++.
This commit is contained in:
Mateusz Karbowiak
2024-10-30 22:22:56 +01:00
parent a55866d558
commit f77f551b72
7 changed files with 11 additions and 11 deletions

View File

@@ -14,8 +14,8 @@ template<typename T, typename AllocationType = HeapAllocation>
class RingBuffer
{
public:
typedef T ItemType;
typedef typename AllocationType::template Data<T> AllocationData;
using ItemType = T;
using AllocationData = typename AllocationType::template Data<T>;
private:
int32 _front = 0, _back = 0, _count = 0, _capacity = 0;