mirror of
https://gitlab.com/libeigen/eigen.git
synced 2025-08-13 20:26:03 +08:00
explicitly disable the use of evalTo for dense object
This commit is contained in:
parent
21d0eb3f11
commit
dcb395c6f5
@ -486,6 +486,12 @@ template<typename Derived> class DenseBase
|
|||||||
#include EIGEN_DENSEBASE_PLUGIN
|
#include EIGEN_DENSEBASE_PLUGIN
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
// disable the use of evalTo for dense objects with a nice compilation error
|
||||||
|
template<typename Dest> inline void evalTo(Dest& dst) const
|
||||||
|
{
|
||||||
|
EIGEN_STATIC_ASSERT((ei_is_same_type<Dest,void>::ret),THE_EVAL_EVALTO_FUNCTION_SHOULD_NEVER_BE_CALLED_FOR_DENSE_OBJECTS);
|
||||||
|
}
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
/** Default constructor. Do nothing. */
|
/** Default constructor. Do nothing. */
|
||||||
DenseBase()
|
DenseBase()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user