Guest User

Untitled

a guest
Oct 27th, 2021
49
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 8.62 KB | None | 0 0
  1. In file included from <root path>/<minimal example.cpp>:1:
  2. In file included from <root path>/Eigen/Core:164:
  3. <root path>/Eigen/src/Core/util/ForwardDeclarations.h:25:47: error: implicit instantiation of undefined template 'Eigen::internal::traits<int>'
  4. template<typename T> struct traits<const T> : traits<T> {};
  5. ^
  6. <root path>/Eigen/src/Core/CwiseBinaryOp.h:83:76: note: in instantiation of template class 'Eigen::internal::traits<const int>' requested here
  7. typename internal::traits<RhsType>::StorageKind,
  8. ^
  9. <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
  10. std::cout << A.max(3) << std::endl;
  11. ^
  12. <root path>/Eigen/src/Core/util/ForwardDeclarations.h:19:29: note: template is declared here
  13. template<typename T> struct traits;
  14. ^
  15. In file included from <root path>/<minimal example.cpp>:1:
  16. In file included from <root path>/Eigen/Core:299:
  17. <root path>/Eigen/src/Core/CwiseBinaryOp.h:96:74: error: implicit instantiation of undefined template 'Eigen::internal::traits<int>'
  18. typename internal::traits<Rhs>::StorageKind,
  19. ^
  20. <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
  21. std::cout << A.max(3) << std::endl;
  22. ^
  23. <root path>/Eigen/src/Core/util/ForwardDeclarations.h:19:29: note: template is declared here
  24. template<typename T> struct traits;
  25. ^
  26. In file included from <root path>/<minimal example.cpp>:1:
  27. In file included from <root path>/Eigen/Core:299:
  28. <root path>/Eigen/src/Core/CwiseBinaryOp.h:38:39: error: type 'const int' cannot be used prior to '::' because it has no members
  29. const typename Rhs::Scalar&
  30. ^
  31. <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
  32. EIGEN_GENERIC_PUBLIC_INTERFACE(CwiseBinaryOp)
  33. ^
  34. <root path>/Eigen/src/Core/util/Macros.h:1276:37: note: expanded from macro 'EIGEN_GENERIC_PUBLIC_INTERFACE'
  35. typedef typename Eigen::internal::traits<Derived>::Scalar Scalar; /*!< \brief Numeric type, e.g. float, double, int or std::complex<float>. */ \
  36. ^
  37. <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
  38. std::cout << A.max(3) << std::endl;
  39. ^
  40. In file included from <root path>/<minimal example.cpp>:1:
  41. In file included from <root path>/Eigen/Core:299:
  42. <root path>/Eigen/src/Core/CwiseBinaryOp.h:42:69: error: no type named 'StorageKind' in 'Eigen::internal::traits<const int>'
  43. typename traits<Rhs>::StorageKind,
  44. ~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~
  45. <root path>/Eigen/src/Core/CwiseBinaryOp.h:45:61: error: no type named 'StorageIndex' in 'Eigen::internal::traits<const int>'
  46. typename traits<Rhs>::StorageIndex>::type StorageIndex;
  47. ~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~
  48. <root path>/Eigen/src/Core/CwiseBinaryOp.h:47:20: error: type 'const int' cannot be used prior to '::' because it has no members
  49. typedef typename Rhs::Nested RhsNested;
  50. ^
  51. <root path>/Eigen/src/Core/CwiseBinaryOp.h:51:97: error: no type named 'StorageKind' in 'Eigen::internal::traits<const int>'
  52. Flags = cwise_promote_storage_order<typename traits<Lhs>::StorageKind,typename traits<Rhs>::StorageKind,_LhsNested::Flags & RowMajorBit,_RhsNested::Flags & RowMajorBit>::value
  53. ~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~
  54. <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
  55. EIGEN_CHECK_BINARY_COMPATIBILIY(BinaryOp,typename Lhs::Scalar,typename Rhs::Scalar)
  56. ^
  57. <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
  58. std::cout << A.max(3) << std::endl;
  59. ^
  60. In file included from <root path>/<minimal example.cpp>:1:
  61. In file included from <root path>/Eigen/Core:166:
  62. <root path>/Eigen/src/Core/util/XprHelper.h:290:37: error: implicit instantiation of undefined template 'Eigen::internal::traits<int>'
  63. enum { ret = size_at_compile_time<traits<XprType>::RowsAtCompileTime,traits<XprType>::ColsAtCompileTime>::ret };
  64. ^
  65. <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
  66. EIGEN_STATIC_ASSERT_SAME_MATRIX_SIZE(Lhs, Rhs)
  67. ^
  68. <root path>/Eigen/src/Core/util/StaticAssert.h:88:6: note: expanded from macro 'EIGEN_STATIC_ASSERT_SAME_MATRIX_SIZE'
  69. EIGEN_PREDICATE_SAME_MATRIX_SIZE(TYPE0,TYPE1),\
  70. ^
  71. <root path>/Eigen/src/Core/util/StaticAssert.h:70:99: note: expanded from macro 'EIGEN_PREDICATE_SAME_MATRIX_SIZE'
  72. (int(Eigen::internal::size_of_xpr_at_compile_time<TYPE0>::ret)==0 && int(Eigen::internal::size_of_xpr_at_compile_time<TYPE1>::ret)==0) \
  73. ^
  74. <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
  75. std::cout << A.max(3) << std::endl;
  76. ^
  77. <root path>/Eigen/src/Core/util/ForwardDeclarations.h:19:29: note: template is declared here
  78. template<typename T> struct traits;
  79. ^
  80. In file included from <root path>/<minimal example.cpp>:1:
  81. In file included from <root path>/Eigen/Core:166:
  82. <root path>/Eigen/src/Core/util/XprHelper.h:421:21: error: no member named 'Flags' in 'Eigen::internal::traits<const int>'
  83. bool(traits<T>::Flags & NestByRefBit),
  84. ~~~~~~~~~~~^
  85. <root path>/Eigen/src/Core/CwiseBinaryOp.h:104:32: note: in instantiation of template class 'Eigen::internal::ref_selector<const int>' requested here
  86. typedef typename internal::ref_selector<RhsType>::type RhsNested;
  87. ^
  88. <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
  89. std::cout << A.max(3) << std::endl;
  90. ^
  91. In file included from <root path>/<minimal example.cpp>:1:
  92. In file included from <root path>/Eigen/Core:166:
  93. <root path>/Eigen/src/Core/util/XprHelper.h:427:21: error: no member named 'Flags' in 'Eigen::internal::traits<const int>'
  94. bool(traits<T>::Flags & NestByRefBit),
  95. ~~~~~~~~~~~^
  96. In file included from <root path>/<minimal example.cpp>:1:
  97. In file included from <root path>/Eigen/Core:286:
  98. In file included from <root path>/Eigen/src/Core/ArrayBase.h:98:
  99. <root path>/Eigen/src/Core/util/../../plugins/ArrayCwiseBinaryOps.h:81:130: error: member reference base type 'const int' is not a structure or union
  100. return CwiseBinaryOp<internal::scalar_max_op<Scalar,Scalar,NaNPropagation>, const Derived, const OtherDerived>(derived(), other.derived());
  101. ~~~~~^~~~~~~~
  102. <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
  103. std::cout << A.max(3) << std::endl;
  104. ^
  105. 12 errors generated.
  106.  
  107. Compilation error
Advertisement
Add Comment
Please, Sign In to add comment