Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix Typo #1686

Merged
merged 2 commits into from
Oct 2, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 10 additions & 10 deletions include/ginkgo/core/base/utils_helper.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -95,32 +95,32 @@


template <typename T, typename = void>
struct is_clonable_impl : std::false_type {};
struct is_cloneable_impl : std::false_type {};

template <typename T>
struct is_clonable_impl<T, std::void_t<decltype(std::declval<T>().clone())>>
struct is_cloneable_impl<T, std::void_t<decltype(std::declval<T>().clone())>>
: std::true_type {};

template <typename T>
constexpr bool is_clonable()
constexpr bool is_cloneable()
{
return is_clonable_impl<std::decay_t<T>>::value;
return is_cloneable_impl<std::decay_t<T>>::value;
}


template <typename T, typename = void>
struct is_clonable_to_impl : std::false_type {};
struct is_cloneable_to_impl : std::false_type {};

template <typename T>
struct is_clonable_to_impl<
struct is_cloneable_to_impl<
T, std::void_t<decltype(std::declval<T>().clone(
std::declval<std::shared_ptr<const Executor>>()))>>
: std::true_type {};

template <typename T>
constexpr bool is_clonable_to()
constexpr bool is_cloneable_to()
{
return is_clonable_to_impl<std::decay_t<T>>::value;
return is_cloneable_to_impl<std::decay_t<T>>::value;
}


Expand Down Expand Up @@ -172,8 +172,8 @@
template <typename Pointer>
inline detail::cloned_type<Pointer> clone(const Pointer& p)
{
static_assert(detail::is_clonable<detail::pointee<Pointer>>(),
static_assert(detail::is_cloneable<detail::pointee<Pointer>>(),
"Object is not clonable");

Check warning on line 176 in include/ginkgo/core/base/utils_helper.hpp

View workflow job for this annotation

GitHub Actions / Spell Check with Typos

"clonable" should be "cloneable".
MarcelKoch marked this conversation as resolved.
Show resolved Hide resolved
return detail::cloned_type<Pointer>(
static_cast<typename std::remove_cv<detail::pointee<Pointer>>::type*>(
p->clone().release()));
Expand All @@ -199,8 +199,8 @@
inline detail::cloned_type<Pointer> clone(std::shared_ptr<const Executor> exec,
const Pointer& p)
{
static_assert(detail::is_clonable_to<detail::pointee<Pointer>>(),
static_assert(detail::is_cloneable_to<detail::pointee<Pointer>>(),
"Object is not clonable");

Check warning on line 203 in include/ginkgo/core/base/utils_helper.hpp

View workflow job for this annotation

GitHub Actions / Spell Check with Typos

"clonable" should be "cloneable".
MarcelKoch marked this conversation as resolved.
Show resolved Hide resolved
return detail::cloned_type<Pointer>(
static_cast<typename std::remove_cv<detail::pointee<Pointer>>::type*>(
p->clone(std::move(exec)).release()));
Expand Down
Loading