We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent cd6dc22 commit db42e71Copy full SHA for db42e71
src/common/Utilities/UniqueTrackablePtr.h
@@ -179,6 +179,14 @@ class unique_weak_ptr
179
unique_weak_ptr(unique_weak_ptr<T2>&& other) noexcept
180
: _ptr(std::move(other)._ptr) { }
181
182
+ template <typename T2>
183
+ unique_weak_ptr(unique_trackable_ptr<T2> const& aliased, T* aliasValue)
184
+ : _ptr(std::shared_ptr<T>(aliased._ptr, aliasValue)) { }
185
+
186
187
+ unique_weak_ptr(unique_trackable_ptr<T2>&& aliased, T* aliasValue)
188
+ : _ptr(std::shared_ptr<T>(std::move(aliased)._ptr, aliasValue)) { }
189
190
unique_weak_ptr& operator=(unique_trackable_ptr<T> const& trackable)
191
{
192
_ptr = trackable._ptr;
0 commit comments