to ease debugging let's catch invalid template options in Transform

This commit is contained in:
Gael Guennebaud 2011-02-25 09:03:24 +01:00
parent 4fbd78d993
commit ef73265987

View File

@ -608,6 +608,7 @@ protected:
#ifndef EIGEN_PARSED_BY_DOXYGEN #ifndef EIGEN_PARSED_BY_DOXYGEN
EIGEN_STRONG_INLINE static void check_template_params() EIGEN_STRONG_INLINE static void check_template_params()
{ {
EIGEN_STATIC_ASSERT((Options & (DontAlign|RowMajor)) == Options, INVALID_MATRIX_TEMPLATE_PARAMETERS)
} }
#endif #endif