mirror of
https://gitlab.com/libeigen/eigen.git
synced 2025-05-10 06:49:04 +08:00
Fix MSVC warnings.
This commit is contained in:
parent
b81351cb07
commit
dd9ff1b9a6
@ -501,8 +501,12 @@ template<typename Derived> class DenseBase
|
|||||||
* Notice that in the case of a plain matrix or vector (not an expression) this function just returns
|
* 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.
|
* a const reference, in order to avoid a useless copy.
|
||||||
*/
|
*/
|
||||||
EIGEN_STRONG_INLINE const typename ei_eval<Derived>::type eval() const
|
inline const typename ei_eval<Derived>::type eval() const
|
||||||
{ return typename ei_eval<Derived>::type(derived()); }
|
{
|
||||||
|
// MSVC cannot honor strong inlining when the return type
|
||||||
|
// is a dynamic matrix
|
||||||
|
return typename ei_eval<Derived>::type(derived());
|
||||||
|
}
|
||||||
|
|
||||||
template<typename OtherDerived>
|
template<typename OtherDerived>
|
||||||
void swap(DenseBase<OtherDerived> EIGEN_REF_TO_TEMPORARY other);
|
void swap(DenseBase<OtherDerived> EIGEN_REF_TO_TEMPORARY other);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user