Skip to content

Commit

Permalink
delete explicit (#13)
Browse files Browse the repository at this point in the history
  • Loading branch information
YGXXD authored Dec 11, 2024
2 parents 7649856 + 2f8d10d commit 8fb1071
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion ktm/interface/matrix/imat_data.h
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ struct imat_data<Father, mat<Row, Col, T>> : Father
KTM_FUNC imat_data(std::initializer_list<vec<Col, T>> li) { std::memcpy(columns, li.begin(), li.size() * sizeof(vec<Col, T>)); }
template<typename... ColVs, typename = std::enable_if_t<sizeof...(ColVs) == Row &&
std::is_same_vs<vec<Col, T>, std::extract_type_t<ColVs>...>>>
KTM_FUNC explicit imat_data(ColVs&&... cols) noexcept : columns{ std::forward<ColVs>(cols)... } { }
KTM_FUNC imat_data(ColVs&&... cols) noexcept : columns{ std::forward<ColVs>(cols)... } { }
private:
vec<Col, T> columns[Row];
};
Expand Down
2 changes: 1 addition & 1 deletion ktm/interface/vector/ivec_data.h
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ struct ivec_data<Father, vec<N, T>> : Father
}

template<typename U, typename = std::enable_if_t<!std::is_same_v<U, T>>>
KTM_FUNC explicit ivec_data(const vec<N, U>& v) noexcept
KTM_FUNC ivec_data(const vec<N, U>& v) noexcept
{
T* st_ptr = reinterpret_cast<T*>(&st);
const U* v_ptr = reinterpret_cast<const U*>(&v.st);
Expand Down

0 comments on commit 8fb1071

Please sign in to comment.