Ticket #10564: chain.patch

File chain.patch, 1.5 KB (added by jur.zikmund@…, 8 years ago)

chain.hpp patch file

  • \boost\iostreams\chain.hpp

    old new  
    133133    typedef chain_client<Self>                     client_type;
    134134    friend class chain_client<Self>;
    135135private:
    136     typedef linked_streambuf<Ch>                   streambuf_type;
     136    typedef linked_streambuf<Ch, Tr>                   streambuf_type;
    137137    typedef std::list<streambuf_type*>             list_type;
    138138    typedef chain_base<Self, Ch, Tr, Alloc, Mode>  my_type;
    139139protected:
     
    237237        typedef typename unwrap_ios<T>::type              component_type;
    238238        typedef stream_buffer<
    239239                    component_type,
    240                     BOOST_IOSTREAMS_CHAR_TRAITS(char_type),
     240                    Tr,
    241241                    Alloc, Mode
    242242                >                                         streambuf_t;
    243243        typedef typename list_type::iterator              iterator;
     
    323323            {
    324324                if ((flags_ & f_open) != 0) {
    325325                    flags_ &= ~f_open;
    326                     stream_buffer< basic_null_device<Ch, Mode> > null;
     326                    stream_buffer< basic_null_device<Ch, Mode>, Tr > null;
    327327                    if ((flags_ & f_complete) == 0) {
    328328                        null.open(basic_null_device<Ch, Mode>());
    329329                        set_next(links_.back(), &null);