Skip to content

Commit

Permalink
Merge pull request #28 from pdinklag/master
Browse files Browse the repository at this point in the history
Make tlx::RingBuffer compatible to C++20
  • Loading branch information
bingmann committed Apr 1, 2021
2 parents eb5ef0a + 757e87e commit 6b391bc
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tlx/container/ring_buffer.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -41,10 +41,10 @@ class RingBuffer

using alloc_traits = std::allocator_traits<allocator_type>;

using reference = typename allocator_type::reference;
using const_reference = typename allocator_type::const_reference;
using pointer = typename allocator_type::pointer;
using const_pointer = typename allocator_type::const_pointer;
typedef Type& reference;
typedef const Type& const_reference;
typedef Type* pointer;
typedef const Type* const_pointer;

using size_type = typename allocator_type::size_type;
using difference_type = typename allocator_type::difference_type;
Expand Down

0 comments on commit 6b391bc

Please sign in to comment.