We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3b146d8 commit b6b5459Copy full SHA for b6b5459
include/pybind11/eigen.h
@@ -539,9 +539,9 @@ struct type_caster<Type, enable_if_t<is_eigen_other<Type>::value>> {
539
540
template<typename Type>
541
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;
+ using Scalar = typename Type::Scalar;
+ using StorageIndex = remove_reference_t<decltype(*std::declval<Type>().outerIndexPtr())>;
+ using Index = typename Type::Index;
545
static constexpr bool rowMajor = Type::IsRowMajor;
546
547
bool load(handle src, bool) {
0 commit comments