]> git.proxmox.com Git - ceph.git/blobdiff - ceph/src/boost/libs/iostreams/example/line_wrapping_filter.hpp
import new upstream nautilus stable release 14.2.8
[ceph.git] / ceph / src / boost / libs / iostreams / example / line_wrapping_filter.hpp
index fba32a69483a4a0f6af8865345751c54a049cbd7..24ee56ffcca713f9eb7f54ce7a06aec7223f6c8e 100644 (file)
@@ -4,7 +4,7 @@
 // file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt.)
 
 // Adapted from an example of James Kanze. See
-// http://www.gabi-soft.fr/codebase-en.html.
+// https://web.archive.org/web/20041222094942/http://www.gabi-soft.fr/codebase-en.html.
 
 // See http://www.boost.org/libs/iostreams for documentation.
 
@@ -49,7 +49,7 @@ private:
 class line_wrapping_input_filter : public input_filter {
 public:
     explicit line_wrapping_input_filter(int line_length = 80)
-        : line_length_(line_length), col_no_(0), has_next_(false)
+        : line_length_(line_length), col_no_(0), next_(0), has_next_(false)
         { }
 
     template<typename Source>
@@ -91,7 +91,7 @@ private:
     int  line_length_;
     int  col_no_;
     int  next_;
-    int  has_next_;
+    bool has_next_;
 };
 
 class line_wrapping_output_filter : public output_filter {