Ignore:
Timestamp:
2018-07-05T21:41:22Z (7 years ago)
Author:
Dzejrou <dzejrou@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
e8ebed9
Parents:
bb02129
git-author:
Dzejrou <dzejrou@…> (2018-05-01 20:48:53)
git-committer:
Dzejrou <dzejrou@…> (2018-07-05 21:41:22)
Message:

cpp: rbtree::find_parent_for_insertion now uses key_type instead of value_type, this caused problems with map::operator[]

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/cpp/include/internal/rbtree.hpp

    rbb02129 r48f09f2f  
    313313            }
    314314
    315             node_type* find_parent_for_insertion(const value_type& val) const
     315            node_type* find_parent_for_insertion(const key_type& key) const
    316316            {
    317317                auto current = root_;
     
    321321                {
    322322                    parent = current;
    323                     if (key_compare_(key_extractor_(val), key_extractor_(current->value)))
     323                    if (key_compare_(key, key_extractor_(current->value)))
    324324                        current = current->left;
    325325                    else
Note: See TracChangeset for help on using the changeset viewer.