Skip to content

Commit 078d252

Browse files
author
Dave Bartolomeo
committed
C++: Add missing shared_ptr<T> members
1 parent 45968ef commit 078d252

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

cpp/ql/test/include/memory.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -126,6 +126,8 @@ namespace std {
126126

127127
T& operator*() const { return *ptr; }
128128

129+
T* get() const noexcept { return ptr; }
130+
129131
~shared_ptr() { dec(); }
130132
};
131133

0 commit comments

Comments
 (0)