From 136680bd71de5b01b68459c4ae737f0cd78feff9 Mon Sep 17 00:00:00 2001 From: Antony Polukhin Date: Tue, 22 Nov 2016 23:47:38 +0300 Subject: [PATCH] Fixed hash copying in assignemt operator --- include/boost/stacktrace.hpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/include/boost/stacktrace.hpp b/include/boost/stacktrace.hpp index 98680a6..cc98e80 100644 --- a/include/boost/stacktrace.hpp +++ b/include/boost/stacktrace.hpp @@ -171,7 +171,9 @@ public: /// @b Complexity: O(1) stacktrace& operator=(const stacktrace& st) BOOST_NOEXCEPT { back_.~backend(); + hash_code_ = st.hash_code_; new (&back_) boost::stacktrace::detail::backend(st.back_, &impl_); + return *this; }