[libcxx-commits] [PATCH] D84943: [libc++] Remove workarounds for missing rvalue references

Marek Kurdej via Phabricator via libcxx-commits libcxx-commits at lists.llvm.org
Thu Jul 30 07:18:36 PDT 2020


curdeius added inline comments.


================
Comment at: libcxx/include/__hash_table:2579
     __h->__next_ = nullptr;
-    return _LIBCPP_EXPLICIT_MOVE(__h);  // explicitly moved for C++03
+    return (__h);  // explicitly moved for C++03
 }
----------------
The parentheses seem unnecessary here (there would be a difference only if you had decltype(auto) return type. And they hinder the reading.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D84943/new/

https://reviews.llvm.org/D84943



More information about the libcxx-commits mailing list