Skip to content

Commit

Permalink
Fix clang-tidy: Prefer using over typedef
Browse files Browse the repository at this point in the history
  • Loading branch information
rhaschke committed Nov 6, 2020
1 parent 3b146d8 commit b6b5459
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions include/pybind11/eigen.h
Original file line number Diff line number Diff line change
Expand Up @@ -539,9 +539,9 @@ struct type_caster<Type, enable_if_t<is_eigen_other<Type>::value>> {

template<typename Type>
struct type_caster<Type, enable_if_t<is_eigen_sparse<Type>::value>> {
typedef typename Type::Scalar Scalar;
typedef remove_reference_t<decltype(*std::declval<Type>().outerIndexPtr())> StorageIndex;
typedef typename Type::Index Index;
using Scalar = typename Type::Scalar;
using StorageIndex = remove_reference_t<decltype(*std::declval<Type>().outerIndexPtr())>;
using Index = typename Type::Index;
static constexpr bool rowMajor = Type::IsRowMajor;

bool load(handle src, bool) {
Expand Down

0 comments on commit b6b5459

Please sign in to comment.