Skip to content

Commit

Permalink
Review update
Browse files Browse the repository at this point in the history
Co-authored-by: Tobias Ribizel <ribizel@kit.edu>
  • Loading branch information
Thomas Grützmacher and upsj committed Apr 13, 2022
1 parent dd8f9df commit 9f274cf
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions include/ginkgo/core/base/utils_helper.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -202,8 +202,8 @@ inline detail::cloned_type<Pointer> clone(std::shared_ptr<const Executor> exec,
* @tparam OwningPointer type of pointer with ownership to the object
* (has to be a smart pointer)
*
* @param p a pointer to the object. It must be movable, meaning it must be an
* rvalue reference.
* @param p a pointer to the object. It must be a temporary or explicitly
* marked movable (rvalue reference).
*
* @note The original pointer `p` becomes invalid after this call.
*/
Expand All @@ -213,7 +213,7 @@ inline detail::shared_type<OwningPointer> share(OwningPointer&& p)
static_assert(detail::have_ownership<OwningPointer>(),
"OwningPointer does not have ownership of the object");
static_assert(std::is_rvalue_reference<decltype(p)>::value,
"p must be an xvalue for this function to work");
"p must be an rvalue for this function to work");
return detail::shared_type<OwningPointer>(std::move(p));
}

Expand Down

0 comments on commit 9f274cf

Please sign in to comment.