From 5dd22d8226675cae9c03d25cc84ed32559bf9f93 Mon Sep 17 00:00:00 2001 From: Daniel Arndt Date: Sat, 12 Aug 2017 17:55:19 +0200 Subject: [PATCH] Describe the suppressed warning --- .../include/boost/signals2/detail/auto_buffer.hpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/bundled/boost-1.62.0/include/boost/signals2/detail/auto_buffer.hpp b/bundled/boost-1.62.0/include/boost/signals2/detail/auto_buffer.hpp index 4059925c77..f11443d92b 100644 --- a/bundled/boost-1.62.0/include/boost/signals2/detail/auto_buffer.hpp +++ b/bundled/boost-1.62.0/include/boost/signals2/detail/auto_buffer.hpp @@ -304,7 +304,9 @@ namespace detail (*this).~auto_buffer(); buffer_ = new_buffer; members_.capacity_ = new_capacity; - size_ = std::max(static_cast(0),size_); + // Make sure size_ is initialized. After calling the dectructor + // the size should be zero. + size_ = 0; BOOST_ASSERT( size_ <= members_.capacity_ ); } -- 2.39.5