Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ┌─[16:05][vl]:[~/iterators_boost]
- └─$ svn info
- Path: .
- Working Copy Root Path: /home/vl/iterators_boost
- URL: http://svn.boost.org/svn/boost/trunk/boost/archive/iterators
- Relative URL: ^/trunk/boost/archive/iterators
- Repository Root: http://svn.boost.org/svn/boost
- Repository UUID: b8fc166d-592f-0410-95f2-cb63ce0dd405
- Revision: 86799
- Node Kind: directory
- Schedule: normal
- Last Changed Author: ramey
- Last Changed Rev: 86155
- Last Changed Date: 2013-10-04 04:26:49 +0400 (Пт, 04 окт 2013)
- ┌─[16:05][vl]:[~/iterators_boost]
- └─$ svn diff -r 85952 transform_width.hpp
- Index: transform_width.hpp
- ===================================================================
- --- transform_width.hpp (revision 85952)
- +++ transform_width.hpp (working copy)
- @@ -24,6 +24,7 @@
- // character and 8 bit bytes. Lowest common multiple is 24 => 4 6 bit characters
- // or 3 8 bit characters
- +
- #include <boost/config.hpp> // for BOOST_DEDUCED_TYPENAME & PTFO
- #include <boost/serialization/pfto.hpp>
- @@ -30,6 +31,8 @@
- #include <boost/iterator/iterator_adaptor.hpp>
- #include <boost/iterator/iterator_traits.hpp>
- +#include <algorithm> // std::min
- +
- namespace boost {
- namespace archive {
- namespace iterators {
- @@ -112,6 +115,10 @@
- transform_width(BOOST_PFTO_WRAPPER(T) start) :
- super_t(Base(BOOST_MAKE_PFTO_WRAPPER(static_cast< T >(start)))),
- m_buffer_out_full(false),
- + // To disable GCC warning, but not truly necessary
- + //(m_buffer_in will be initialized later before being
- + //used because m_remaining_bits == 0)
- + m_buffer_in(0),
- m_remaining_bits(0),
- m_end_of_sequence(false)
- {}
- @@ -119,8 +126,8 @@
- transform_width(const transform_width & rhs) :
- super_t(rhs.base_reference()),
- m_buffer_out_full(rhs.m_buffer_out_full),
- + m_buffer_in(rhs.m_buffer_in),
- m_remaining_bits(rhs.m_remaining_bits),
- - m_buffer_in(rhs.m_buffer_in),
- m_end_of_sequence(false)
- {}
- };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement