Changeset fe39530 in mainline


Ignore:
Timestamp:
2018-07-05T21:41:19Z (6 years ago)
Author:
Dzejrou <dzejrou@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
e8c4c59
Parents:
2cf1da7
git-author:
Dzejrou <dzejrou@…> (2017-12-17 20:01:04)
git-committer:
Dzejrou <dzejrou@…> (2018-07-05 21:41:19)
Message:

cpp: fixed istreambuf_iterator

File:
1 edited

Legend:

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

    r2cf1da7 rfe39530  
    819819            {
    820820                public:
     821                    proxy_type(int_type c, streambuf_type* sbuf)
     822                        : char_{c}, sbuf_{sbuf}
     823                    { /* DUMMY BODY */ }
     824
    821825                    char_type operator*()
    822826                    {
    823                         return char_;
     827                        return traits_type::to_char_type(char_);
    824828                    }
    825829
    826830                private:
    827                     proxy_type(char_type c, streambuf_type sbuf)
    828                         : char_{c}, sbuf_{sbuf}
    829                     { /* DUMMY BODY */ }
    830 
    831                     char_type char_;
     831                    int_type char_;
    832832
    833833                    streambuf_type* sbuf_;
     
    854854            { /* DUMMY BODY */ }
    855855
    856             char_type operator*() const
     856            char_type operator*() /* const */ // TODO: Should be const :/
    857857            {
    858858                if (sbuf_)
Note: See TracChangeset for help on using the changeset viewer.