You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

11 lines
267 B

  1. --- a/yarpl/Refcounted.h
  2. +++ b/yarpl/Refcounted.h
  3. @@ -42,7 +42,7 @@ std::shared_ptr<T> atomic_exchange(
  4. auto refptr = ar->ref.lock();
  5. auto old = std::move(*refptr);
  6. *refptr = std::move(r);
  7. - return std::move(old);
  8. + return old;
  9. }
  10. template <typename T>