Skip to content

Commit

Permalink
[misc] fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
MarcelKoch committed Oct 2, 2024
1 parent b5745ac commit 7322c51
Showing 1 changed file with 10 additions and 10 deletions.
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 @@ using pointee =


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,7 +172,7 @@ using shared_type = std::shared_ptr<pointee<Pointer>>;
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".
return detail::cloned_type<Pointer>(
static_cast<typename std::remove_cv<detail::pointee<Pointer>>::type*>(
Expand All @@ -199,7 +199,7 @@ template <typename Pointer>
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".
return detail::cloned_type<Pointer>(
static_cast<typename std::remove_cv<detail::pointee<Pointer>>::type*>(
Expand Down

0 comments on commit 7322c51

Please sign in to comment.