Added an explicit cast from int to bool to suppress MSVC warnings.

This commit is contained in:
Hauke Heibel 2009-07-23 00:11:25 +02:00
parent 562864bcfb
commit 8d2cd744b0

View File

@ -550,7 +550,7 @@ class Matrix
template<typename OtherDerived>
EIGEN_STRONG_INLINE Matrix& _set(const MatrixBase<OtherDerived>& other)
{
_set_selector(other.derived(), typename ei_meta_if<(int(OtherDerived::Flags) & EvalBeforeAssigningBit), ei_meta_true, ei_meta_false>::ret());
_set_selector(other.derived(), typename ei_meta_if<static_cast<bool>(int(OtherDerived::Flags) & EvalBeforeAssigningBit), ei_meta_true, ei_meta_false>::ret());
return *this;
}