From 883c2900c8bdbae50780f48c25119fabb0bd89e6 Mon Sep 17 00:00:00 2001 From: Francisco Paisana Date: Thu, 23 Jan 2020 17:46:41 +0000 Subject: [PATCH] fix issue with future clear --- lib/include/srslte/common/stack_procedure.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/include/srslte/common/stack_procedure.h b/lib/include/srslte/common/stack_procedure.h index ef56af84b..e4efedb8f 100644 --- a/lib/include/srslte/common/stack_procedure.h +++ b/lib/include/srslte/common/stack_procedure.h @@ -189,7 +189,7 @@ public: bool is_complete() const { return not is_empty() and ptr->is_complete(); } const ResultType* value() const { return is_success() ? ptr->value() : nullptr; } bool is_empty() const { return ptr == nullptr; } - void clear() { ptr->clear(); } + void clear() { ptr.reset(); } private: std::shared_ptr > ptr;