Fixed hash copying in assignemt operator

This commit is contained in:
Antony Polukhin
2016-11-22 23:47:38 +03:00
parent 4da524a601
commit 136680bd71

View File

@@ -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;
}