File tree Expand file tree Collapse file tree 1 file changed +1
-2
lines changed
Expand file tree Collapse file tree 1 file changed +1
-2
lines changed Original file line number Diff line number Diff line change @@ -851,7 +851,7 @@ class basic_memory_buffer : public detail::buffer<T> {
851851 allocator_move_impl (basic_memory_buffer& other) {
852852 T* data = other.data ();
853853 if (alloc_ != other.alloc_ && data != other.store_ ) {
854- size_t size = other.size (), capacity = other. capacity () ;
854+ size_t size = other.size ();
855855 // Perform copy operation, allocators are different
856856 this ->resize (size);
857857 detail::copy<T>(data, data + size, this ->data ());
@@ -862,7 +862,6 @@ class basic_memory_buffer : public detail::buffer<T> {
862862
863863 // Move data from other to this buffer.
864864 FMT_CONSTEXPR20 void move (basic_memory_buffer& other) {
865- using alloc_traits = std::allocator_traits<Allocator>;
866865 T* data = other.data ();
867866 size_t size = other.size (), capacity = other.capacity ();
868867 // Replicate the behaviour of std library containers
You can’t perform that action at this time.
0 commit comments