Changeset eaabd7d in mainline


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

cpp: fixed bugs found by the tests

Location:
uspace/lib/cpp/include/impl
Files:
4 edited

Legend:

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

    rfceeb93 reaabd7d  
    471471        Char one{is.widen('1')};
    472472
    473         basic_string<Char, Traits> str{N};
     473        basic_string<Char, Traits> str{};
    474474        while (i < N)
    475475        {
     
    486486
    487487            str.push_back(c);
     488            ++i;
    488489        }
    489490
  • uspace/lib/cpp/include/impl/istream.hpp

    rfceeb93 reaabd7d  
    427427                    c = traits_type::to_char_type(res);
    428428
    429                 return this;
     429                return *this;
    430430            }
    431431
  • uspace/lib/cpp/include/impl/iterator.hpp

    rfceeb93 reaabd7d  
    164164    template<class Iterator>
    165165    class reverse_iterator
    166         : iterator<
     166        : public iterator<
    167167            typename iterator_traits<Iterator>::iterator_category,
    168168            typename iterator_traits<Iterator>::value_type,
  • uspace/lib/cpp/include/impl/sstream.hpp

    rfceeb93 reaabd7d  
    3232#include <ios>
    3333#include <iosfwd>
     34#include <iostream>
    3435#include <streambuf>
    3536#include <string>
     
    104105                if (mode_ & ios_base::out)
    105106                    return basic_string<char_type, traits_type, allocator_type>{
    106                         this->output_begin_, this->output_next_, str_.get_allocator()
     107                        this->output_begin_, this->output_next_ - 1, str_.get_allocator()
    107108                    };
    108109                else if (mode_ == ios_base::in)
Note: See TracChangeset for help on using the changeset viewer.