Changeset 4f202b20 in mainline


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

cpp: fixed copy iterator assignment and added a return statement to copy_backward

File:
1 edited

Legend:

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

    rb4b01cb r4f202b20  
    337337    {
    338338        while (first != last)
    339             *result++ = first++;
     339            *result++ = *first++;
    340340
    341341        return result;
     
    372372        while (last-- != first)
    373373            *result-- = *last;
     374
     375        return result;
    374376    }
    375377
Note: See TracChangeset for help on using the changeset viewer.