Skip to content

Commit 7d0122f

Browse files
committed
Changes to support clang-19
1 parent a69290c commit 7d0122f

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

c10/util/intrusive_ptr.h

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -371,7 +371,7 @@ class intrusive_ptr final {
371371
}
372372

373373
intrusive_ptr& operator=(intrusive_ptr&& rhs) & noexcept {
374-
return operator=<TTarget, NullType>(std::move(rhs));
374+
return this->template operator=<TTarget, NullType>(std::move(rhs));
375375
}
376376

377377
template <class From, class FromNullType>
@@ -385,7 +385,7 @@ class intrusive_ptr final {
385385
}
386386

387387
intrusive_ptr& operator=(const intrusive_ptr& rhs) & noexcept {
388-
return operator=<TTarget, NullType>(rhs);
388+
return this->template operator=<TTarget, NullType>(rhs);
389389
}
390390

391391
template <class From, class FromNullType>
@@ -756,7 +756,7 @@ class weak_intrusive_ptr final {
756756
}
757757

758758
weak_intrusive_ptr& operator=(weak_intrusive_ptr&& rhs) & noexcept {
759-
return operator=<TTarget, NullType>(std::move(rhs));
759+
return this->template operator=<TTarget, NullType>(std::move(rhs));
760760
}
761761

762762
template <class From, class FromNullType>
@@ -771,7 +771,7 @@ class weak_intrusive_ptr final {
771771
}
772772

773773
weak_intrusive_ptr& operator=(const weak_intrusive_ptr& rhs) & noexcept {
774-
return operator=<TTarget, NullType>(rhs);
774+
return this->template operator=<TTarget, NullType>(rhs);
775775
}
776776

777777
weak_intrusive_ptr& operator=(

0 commit comments

Comments
 (0)