Skip to content

Commit

Permalink
Revert lifetime::release, can lead to leaks.
Browse files Browse the repository at this point in the history
  • Loading branch information
john-preston committed May 21, 2020
1 parent df918b9 commit 88ae67c
Showing 1 changed file with 0 additions and 11 deletions.
11 changes: 0 additions & 11 deletions rpl/lifetime.h
Original file line number Diff line number Diff line change
Expand Up @@ -92,15 +92,4 @@ inline void lifetime::release() {
_callbacks.clear();
}

struct release_t {
};

inline release_t release() {
return {};
}

inline void operator|(rpl::lifetime &&lifetime, release_t) {
lifetime.release();
}

} // namespace rpl

0 comments on commit 88ae67c

Please sign in to comment.