fix misc warnings, more importantly when NDEBUG is defined, assert() is a

nop.
This commit is contained in:
Thomas Capricelli
2010-03-27 18:58:29 +01:00
parent af08770890
commit 0a5c2d8a54
4 changed files with 4 additions and 6 deletions

View File

@@ -584,7 +584,7 @@ template<typename Derived> class DenseBase
#endif
// disable the use of evalTo for dense objects with a nice compilation error
template<typename Dest> inline void evalTo(Dest& dst) const
template<typename Dest> inline void evalTo(Dest& ) const
{
EIGEN_STATIC_ASSERT((ei_is_same_type<Dest,void>::ret),THE_EVAL_EVALTO_FUNCTION_SHOULD_NEVER_BE_CALLED_FOR_DENSE_OBJECTS);
}