mirror of
https://gitlab.com/libeigen/eigen.git
synced 2025-09-23 06:43:13 +08:00
Fix Gcc8.5 warning about missing base class initialisation (#2404)
This commit is contained in:
parent
47eac21072
commit
c9df98b071
@ -275,7 +275,7 @@ class Tensor : public TensorBase<Tensor<Scalar_, NumIndices_, Options_, IndexTyp
|
||||
|
||||
EIGEN_DEVICE_FUNC
|
||||
EIGEN_STRONG_INLINE Tensor(const Self& other)
|
||||
: m_storage(other.m_storage)
|
||||
: Base(other), m_storage(other.m_storage)
|
||||
{
|
||||
}
|
||||
|
||||
|
@ -215,7 +215,7 @@ class TensorFixedSize : public TensorBase<TensorFixedSize<Scalar_, Dimensions_,
|
||||
|
||||
EIGEN_DEVICE_FUNC
|
||||
EIGEN_STRONG_INLINE TensorFixedSize(const Self& other)
|
||||
: m_storage(other.m_storage)
|
||||
: Base(other), m_storage(other.m_storage)
|
||||
{
|
||||
}
|
||||
|
||||
|
@ -174,7 +174,7 @@ template<typename PlainObjectType> class TensorRef : public TensorBase<TensorRef
|
||||
unrefEvaluator();
|
||||
}
|
||||
|
||||
TensorRef(const TensorRef& other) : m_evaluator(other.m_evaluator) {
|
||||
TensorRef(const TensorRef& other) : TensorBase<TensorRef<PlainObjectType> >(other), m_evaluator(other.m_evaluator) {
|
||||
eigen_assert(m_evaluator->refCount() > 0);
|
||||
m_evaluator->incrRefCount();
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user