Changeset 836ecad in mainline


Ignore:
Timestamp:
2018-07-05T21:41:18Z (6 years ago)
Author:
Dzejrou <dzejrou@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
b08a62c
Parents:
98c99ba
git-author:
Jaroslav Jindrak <dzejrou@…> (2017-10-25 21:29:57)
git-committer:
Dzejrou <dzejrou@…> (2018-07-05 21:41:18)
Message:

cpp: std::vector::get_allocator now returns a copy for sure

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/cpp/include/impl/vector.hpp

    r98c99ba r836ecad  
    188188            allocator_type get_allocator() const noexcept
    189189            {
    190                 return allocator_type{};
     190                return allocator_type{allocator_};
    191191            }
    192192
     
    493493            size_type size_;
    494494            size_type capacity_;
    495             Allocator allocator_;
     495            allocator_type allocator_;
    496496
    497497            void resize_without_copy_(size_type capacity)
Note: See TracChangeset for help on using the changeset viewer.