From 0fd99736f5856f2aee18f1d4fed5abb62e4ce6e7 Mon Sep 17 00:00:00 2001 From: Matthias Maier Date: Mon, 20 Apr 2015 16:00:35 +0200 Subject: [PATCH] Explicitly call default constructor to silence a bogus warning This fixes a bogus warning emitted by gcc 4.8 and 4.9 about a possible uninitialized member object --- .../include/boost/archive/iterators/istream_iterator.hpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/bundled/boost-1.56.0/include/boost/archive/iterators/istream_iterator.hpp b/bundled/boost-1.56.0/include/boost/archive/iterators/istream_iterator.hpp index 41aa0be37b..e3432c2ddd 100644 --- a/bundled/boost-1.56.0/include/boost/archive/iterators/istream_iterator.hpp +++ b/bundled/boost-1.56.0/include/boost/archive/iterators/istream_iterator.hpp @@ -84,13 +84,15 @@ class istream_iterator : Elem m_current_value; public: istream_iterator(istream_type & is) : - m_istream(& is) + m_istream(& is), + m_current_value() { //increment(); } istream_iterator() : - m_istream(NULL) + m_istream(NULL), + m_current_value() {} istream_iterator(const istream_iterator & rhs) : -- 2.39.5