You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
MB-30044: Make TaggedPtr<T> use explicit constructors
Add bool operator==(const TaggedPtr<T>& other) const to TaggedPtr<T>, so
that we can compare two TaggedPtr templates. As currently when comparing
two, they get cast to a bool() and then compared which is incorrect.
Also refactor SingleThreadedRCPtr<T,P,D> to separate the single arg
constructor and default constructor which inits value to Pointer's
default value. Plus add reset() method that resets SingleThreadedRCPtr<>
without taking an argument and sets the value to pointers default value.
Refactor BasicLinkedList::purgeListElem() to only take ownership of the
item that is to be erased after its been removed from the LinkedList.
Change-Id: I8dfd27120bd73b774244fd5e3f6741408e23832b
Reviewed-on: http://review.couchbase.org/c/kv_engine/+/132648
Tested-by: Build Bot <[email protected]>
Reviewed-by: Dave Rigby <[email protected]>
0 commit comments