]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Describe the suppressed warning 4781/head
authorDaniel Arndt <daniel.arndt@iwr.uni-heidelberg.de>
Sat, 12 Aug 2017 15:55:19 +0000 (17:55 +0200)
committerDaniel Arndt <daniel.arndt@iwr.uni-heidelberg.de>
Sat, 12 Aug 2017 20:46:15 +0000 (22:46 +0200)
bundled/boost-1.62.0/include/boost/signals2/detail/auto_buffer.hpp

index 4059925c776a46b312ed94d570d0c3542b904740..f11443d92bbf9833007db1856a8e774e3c9fa633 100644 (file)
@@ -304,7 +304,9 @@ namespace detail
             (*this).~auto_buffer();
             buffer_   = new_buffer;
             members_.capacity_ = new_capacity;
-            size_ = std::max(static_cast<decltype(size_)>(0),size_);
+            // Make sure size_ is initialized. After calling the dectructor
+            // the size should be zero.
+            size_ = 0;
             BOOST_ASSERT( size_ <= members_.capacity_ );
         }
 

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.