mirror of https://github.com/PentHertz/srsLTE.git
fix issue with future clear
This commit is contained in:
parent
91d83fc20d
commit
883c2900c8
|
@ -189,7 +189,7 @@ public:
|
||||||
bool is_complete() const { return not is_empty() and ptr->is_complete(); }
|
bool is_complete() const { return not is_empty() and ptr->is_complete(); }
|
||||||
const ResultType* value() const { return is_success() ? ptr->value() : nullptr; }
|
const ResultType* value() const { return is_success() ? ptr->value() : nullptr; }
|
||||||
bool is_empty() const { return ptr == nullptr; }
|
bool is_empty() const { return ptr == nullptr; }
|
||||||
void clear() { ptr->clear(); }
|
void clear() { ptr.reset(); }
|
||||||
|
|
||||||
private:
|
private:
|
||||||
std::shared_ptr<proc_result_t<ResultType> > ptr;
|
std::shared_ptr<proc_result_t<ResultType> > ptr;
|
||||||
|
|
Loading…
Reference in New Issue