Resurect EvalBeforeNestingBit to control nested_eval

This commit is contained in:
Gael Guennebaud
2014-03-12 20:25:36 +01:00
parent 16d4c7a5e8
commit aceae8314b
3 changed files with 5 additions and 3 deletions

View File

@@ -432,7 +432,8 @@ template<typename T, int n, typename PlainObject = typename eval<T>::type> struc
};
typedef typename conditional<
int(CostEvalAsInteger) < int(CostNoEvalAsInteger),
( (int(evaluator<T>::Flags) & EvalBeforeNestingBit) ||
(int(CostEvalAsInteger) < int(CostNoEvalAsInteger)) ),
PlainObject,
typename ref_selector<T>::type
>::type type;