]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Explicitly call default constructor to silence a bogus warning 848/head
authorMatthias Maier <matthias.maier@iwr.uni-heidelberg.de>
Mon, 20 Apr 2015 14:00:35 +0000 (16:00 +0200)
committerMatthias Maier <matthias.maier@iwr.uni-heidelberg.de>
Mon, 20 Apr 2015 14:00:35 +0000 (16:00 +0200)
This fixes a bogus warning emitted by gcc 4.8 and 4.9 about a possible
uninitialized member object

bundled/boost-1.56.0/include/boost/archive/iterators/istream_iterator.hpp

index 41aa0be37b55ff3b3934314dd950fd88bbfd5c24..e3432c2ddd400e285ad9130d03f87a929c04c57d 100644 (file)
@@ -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<Elem> & rhs) :

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.