fix issue with future clear

This commit is contained in:
Francisco Paisana 2020-01-23 17:46:41 +00:00
parent 91d83fc20d
commit 883c2900c8
1 changed files with 1 additions and 1 deletions

View File

@ -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<proc_result_t<ResultType> > ptr;