Skip to content

Commit b6b5459

Browse files
committed
Fix clang-tidy: Prefer using over typedef
1 parent 3b146d8 commit b6b5459

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

include/pybind11/eigen.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -539,9 +539,9 @@ struct type_caster<Type, enable_if_t<is_eigen_other<Type>::value>> {
539539

540540
template<typename Type>
541541
struct type_caster<Type, enable_if_t<is_eigen_sparse<Type>::value>> {
542-
typedef typename Type::Scalar Scalar;
543-
typedef remove_reference_t<decltype(*std::declval<Type>().outerIndexPtr())> StorageIndex;
544-
typedef typename Type::Index Index;
542+
using Scalar = typename Type::Scalar;
543+
using StorageIndex = remove_reference_t<decltype(*std::declval<Type>().outerIndexPtr())>;
544+
using Index = typename Type::Index;
545545
static constexpr bool rowMajor = Type::IsRowMajor;
546546

547547
bool load(handle src, bool) {

0 commit comments

Comments
 (0)