fix two warnings(unused typedef, unused variable) and a typo

(grafted from a9aa3bcf50
)
This commit is contained in:
Angelos Mantzaflaris
2016-12-01 21:23:43 +01:00
parent 27873008d4
commit aeba0d8655
3 changed files with 5 additions and 2 deletions

View File

@@ -763,6 +763,7 @@ class PlainObjectBase : public internal::dense_xpr_base<Derived>::type
{
// NOTE MSVC 2008 complains if we directly put bool(NumTraits<T>::IsInteger) as the EIGEN_STATIC_ASSERT argument.
const bool is_integer = NumTraits<T>::IsInteger;
EIGEN_UNUSED_VARIABLE(is_integer);
EIGEN_STATIC_ASSERT(is_integer,
FLOATING_POINT_ARGUMENT_PASSED__INTEGER_WAS_EXPECTED)
resize(size);