mirror of
https://gitlab.com/libeigen/eigen.git
synced 2025-02-05 17:50:26 +08:00
I was not really aware of the implications on fixed size types when the strong inlining is not present. We really need it on MSVC!
This commit is contained in:
parent
05910b7996
commit
39edf8e2bf
@ -442,11 +442,12 @@ template<typename Derived> class DenseBase
|
||||
* Notice that in the case of a plain matrix or vector (not an expression) this function just returns
|
||||
* a const reference, in order to avoid a useless copy.
|
||||
*/
|
||||
inline const typename ei_eval<Derived>::type eval() const
|
||||
EIGEN_STRONG_INLINE const typename ei_eval<Derived>::type eval() const
|
||||
{
|
||||
// MSVC cannot honor strong inlining when the return type
|
||||
// is a dynamic matrix
|
||||
return typename ei_eval<Derived>::type(derived());
|
||||
// Even though MSVC does not honor strong inlining when the return type
|
||||
// is a dynamic matrix, we desperately need strong inlining for fixed
|
||||
// size types on MSVC.
|
||||
return typename ei_eval<Derived>::type(derived());
|
||||
}
|
||||
|
||||
template<typename OtherDerived>
|
||||
|
Loading…
Reference in New Issue
Block a user