Changeset e5cf551 in mainline


Ignore:
Timestamp:
2018-07-05T21:41:21Z (6 years ago)
Author:
Dzejrou <dzejrou@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
eb3c271
Parents:
f62f1ee
git-author:
Dzejrou <dzejrou@…> (2018-04-20 15:34:03)
git-committer:
Dzejrou <dzejrou@…> (2018-07-05 21:41:21)
Message:

cpp: fixed ambiguities

Location:
uspace/lib/cpp/include
Files:
2 edited

Legend:

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

    rf62f1ee re5cf551  
    782782                return insert(
    783783                    position,
    784                     aux::insert_iterator{value},
     784                    aux::insert_iterator{0u, value},
    785785                    aux::insert_iterator{n}
    786786                );
  • uspace/lib/cpp/include/internal/insert_iterator.hpp

    rf62f1ee re5cf551  
    6060    {
    6161        public:
    62             using difference_type   = unsigned;
     62            using difference_type   = unsigned long long;
    6363            using value_type        = T;
    64             using iterator_category = forward_iterator_tag;
     64            using iterator_category = input_iterator_tag;
    6565            using reference         = value_type&;
    6666            using pointer           = value_type*;
    6767
    68             explicit insert_iterator(const value_type& val)
    69                 : value_{val}, count_{}
    70             { /* DUMMY BODY */ }
    71 
    72             explicit insert_iterator(difference_type count)
    73                 : value_{}, count_{count}
    74             { /* DUMMY BODY */ }
    75 
    76             explicit insert_iterator(const value_type& val, difference_type count)
     68            explicit insert_iterator(difference_type count, const value_type& val = value_type{})
    7769                : value_{val}, count_{count}
    7870            { /* DUMMY BODY */ }
     
    10597                ++count_;
    10698
    107                 return insert_iterator{value_, count_ - 1};
     99                return insert_iterator{count_ - 1, value_};
    108100            }
    109101
Note: See TracChangeset for help on using the changeset viewer.