Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- In file included from <root path>/<minimal example.cpp>:1:
- In file included from <root path>/Eigen/Core:164:
- <root path>/Eigen/src/Core/util/ForwardDeclarations.h:25:47: error: implicit instantiation of undefined template 'Eigen::internal::traits<int>'
- template<typename T> struct traits<const T> : traits<T> {};
- ^
- <root path>/Eigen/src/Core/CwiseBinaryOp.h:83:76: note: in instantiation of template class 'Eigen::internal::traits<const int>' requested here
- typename internal::traits<RhsType>::StorageKind,
- ^
- <root path>/<minimal example.cpp>:6:18: note: in instantiation of template class 'Eigen::CwiseBinaryOp<Eigen::internal::scalar_max_op<float, float, 0>, const Eigen::Array<float, 4, 7, 0>, const int>' requested here
- std::cout << A.max(3) << std::endl;
- ^
- <root path>/Eigen/src/Core/util/ForwardDeclarations.h:19:29: note: template is declared here
- template<typename T> struct traits;
- ^
- In file included from <root path>/<minimal example.cpp>:1:
- In file included from <root path>/Eigen/Core:299:
- <root path>/Eigen/src/Core/CwiseBinaryOp.h:96:74: error: implicit instantiation of undefined template 'Eigen::internal::traits<int>'
- typename internal::traits<Rhs>::StorageKind,
- ^
- <root path>/<minimal example.cpp>:6:18: note: in instantiation of template class 'Eigen::CwiseBinaryOp<Eigen::internal::scalar_max_op<float, float, 0>, const Eigen::Array<float, 4, 7, 0>, const int>' requested here
- std::cout << A.max(3) << std::endl;
- ^
- <root path>/Eigen/src/Core/util/ForwardDeclarations.h:19:29: note: template is declared here
- template<typename T> struct traits;
- ^
- In file included from <root path>/<minimal example.cpp>:1:
- In file included from <root path>/Eigen/Core:299:
- <root path>/Eigen/src/Core/CwiseBinaryOp.h:38:39: error: type 'const int' cannot be used prior to '::' because it has no members
- const typename Rhs::Scalar&
- ^
- <root path>/Eigen/src/Core/CwiseBinaryOp.h:98:5: note: in instantiation of template class 'Eigen::internal::traits<Eigen::CwiseBinaryOp<Eigen::internal::scalar_max_op<float, float, 0>, const Eigen::Array<float, 4, 7, 0>, const int>>' requested here
- EIGEN_GENERIC_PUBLIC_INTERFACE(CwiseBinaryOp)
- ^
- <root path>/Eigen/src/Core/util/Macros.h:1276:37: note: expanded from macro 'EIGEN_GENERIC_PUBLIC_INTERFACE'
- typedef typename Eigen::internal::traits<Derived>::Scalar Scalar; /*!< \brief Numeric type, e.g. float, double, int or std::complex<float>. */ \
- ^
- <root path>/<minimal example.cpp>:6:18: note: in instantiation of template class 'Eigen::CwiseBinaryOp<Eigen::internal::scalar_max_op<float, float, 0>, const Eigen::Array<float, 4, 7, 0>, const int>' requested here
- std::cout << A.max(3) << std::endl;
- ^
- In file included from <root path>/<minimal example.cpp>:1:
- In file included from <root path>/Eigen/Core:299:
- <root path>/Eigen/src/Core/CwiseBinaryOp.h:42:69: error: no type named 'StorageKind' in 'Eigen::internal::traits<const int>'
- typename traits<Rhs>::StorageKind,
- ~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~
- <root path>/Eigen/src/Core/CwiseBinaryOp.h:45:61: error: no type named 'StorageIndex' in 'Eigen::internal::traits<const int>'
- typename traits<Rhs>::StorageIndex>::type StorageIndex;
- ~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~
- <root path>/Eigen/src/Core/CwiseBinaryOp.h:47:20: error: type 'const int' cannot be used prior to '::' because it has no members
- typedef typename Rhs::Nested RhsNested;
- ^
- <root path>/Eigen/src/Core/CwiseBinaryOp.h:51:97: error: no type named 'StorageKind' in 'Eigen::internal::traits<const int>'
- Flags = cwise_promote_storage_order<typename traits<Lhs>::StorageKind,typename traits<Rhs>::StorageKind,_LhsNested::Flags & RowMajorBit,_RhsNested::Flags & RowMajorBit>::value
- ~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~
- <root path>/Eigen/src/Core/CwiseBinaryOp.h:100:76: error: type 'Eigen::CwiseBinaryOp<Eigen::internal::scalar_max_op<float, float, 0>, const Eigen::Array<float, 4, 7, 0>, const int>::Rhs' (aka 'int') cannot be used prior to '::' because it has no members
- EIGEN_CHECK_BINARY_COMPATIBILIY(BinaryOp,typename Lhs::Scalar,typename Rhs::Scalar)
- ^
- <root path>/<minimal example.cpp>:6:18: note: in instantiation of template class 'Eigen::CwiseBinaryOp<Eigen::internal::scalar_max_op<float, float, 0>, const Eigen::Array<float, 4, 7, 0>, const int>' requested here
- std::cout << A.max(3) << std::endl;
- ^
- In file included from <root path>/<minimal example.cpp>:1:
- In file included from <root path>/Eigen/Core:166:
- <root path>/Eigen/src/Core/util/XprHelper.h:290:37: error: implicit instantiation of undefined template 'Eigen::internal::traits<int>'
- enum { ret = size_at_compile_time<traits<XprType>::RowsAtCompileTime,traits<XprType>::ColsAtCompileTime>::ret };
- ^
- <root path>/Eigen/src/Core/CwiseBinaryOp.h:101:5: note: in instantiation of template class 'Eigen::internal::size_of_xpr_at_compile_time<int>' requested here
- EIGEN_STATIC_ASSERT_SAME_MATRIX_SIZE(Lhs, Rhs)
- ^
- <root path>/Eigen/src/Core/util/StaticAssert.h:88:6: note: expanded from macro 'EIGEN_STATIC_ASSERT_SAME_MATRIX_SIZE'
- EIGEN_PREDICATE_SAME_MATRIX_SIZE(TYPE0,TYPE1),\
- ^
- <root path>/Eigen/src/Core/util/StaticAssert.h:70:99: note: expanded from macro 'EIGEN_PREDICATE_SAME_MATRIX_SIZE'
- (int(Eigen::internal::size_of_xpr_at_compile_time<TYPE0>::ret)==0 && int(Eigen::internal::size_of_xpr_at_compile_time<TYPE1>::ret)==0) \
- ^
- <root path>/<minimal example.cpp>:6:18: note: in instantiation of template class 'Eigen::CwiseBinaryOp<Eigen::internal::scalar_max_op<float, float, 0>, const Eigen::Array<float, 4, 7, 0>, const int>' requested here
- std::cout << A.max(3) << std::endl;
- ^
- <root path>/Eigen/src/Core/util/ForwardDeclarations.h:19:29: note: template is declared here
- template<typename T> struct traits;
- ^
- In file included from <root path>/<minimal example.cpp>:1:
- In file included from <root path>/Eigen/Core:166:
- <root path>/Eigen/src/Core/util/XprHelper.h:421:21: error: no member named 'Flags' in 'Eigen::internal::traits<const int>'
- bool(traits<T>::Flags & NestByRefBit),
- ~~~~~~~~~~~^
- <root path>/Eigen/src/Core/CwiseBinaryOp.h:104:32: note: in instantiation of template class 'Eigen::internal::ref_selector<const int>' requested here
- typedef typename internal::ref_selector<RhsType>::type RhsNested;
- ^
- <root path>/<minimal example.cpp>:6:18: note: in instantiation of template class 'Eigen::CwiseBinaryOp<Eigen::internal::scalar_max_op<float, float, 0>, const Eigen::Array<float, 4, 7, 0>, const int>' requested here
- std::cout << A.max(3) << std::endl;
- ^
- In file included from <root path>/<minimal example.cpp>:1:
- In file included from <root path>/Eigen/Core:166:
- <root path>/Eigen/src/Core/util/XprHelper.h:427:21: error: no member named 'Flags' in 'Eigen::internal::traits<const int>'
- bool(traits<T>::Flags & NestByRefBit),
- ~~~~~~~~~~~^
- In file included from <root path>/<minimal example.cpp>:1:
- In file included from <root path>/Eigen/Core:286:
- In file included from <root path>/Eigen/src/Core/ArrayBase.h:98:
- <root path>/Eigen/src/Core/util/../../plugins/ArrayCwiseBinaryOps.h:81:130: error: member reference base type 'const int' is not a structure or union
- return CwiseBinaryOp<internal::scalar_max_op<Scalar,Scalar,NaNPropagation>, const Derived, const OtherDerived>(derived(), other.derived());
- ~~~~~^~~~~~~~
- <root path>/<minimal example.cpp>:6:18: note: in instantiation of function template specialization 'Eigen::ArrayBase<Eigen::Array<float, 4, 7, 0>>::max<0, int>' requested here
- std::cout << A.max(3) << std::endl;
- ^
- 12 errors generated.
- Compilation error
Advertisement
Add Comment
Please, Sign In to add comment