From ee2fc59ca15b5920bee96fce1a6fa0f88ae4aede Mon Sep 17 00:00:00 2001 From: Oliver Kowalke Date: Tue, 20 Oct 2015 10:09:57 +0200 Subject: [PATCH] call destructor for stored values in shared_state --- include/boost/fiber/future/detail/shared_state.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/boost/fiber/future/detail/shared_state.hpp b/include/boost/fiber/future/detail/shared_state.hpp index bc2692ee..658a4bef 100644 --- a/include/boost/fiber/future/detail/shared_state.hpp +++ b/include/boost/fiber/future/detail/shared_state.hpp @@ -128,7 +128,7 @@ public: virtual ~shared_state() noexcept { if ( ready_) { - //reinterpret_cast< R const* >( storage_)->~R(); + reinterpret_cast< R const* >( storage_)->~R(); } }