Fix c++20 warnings about using enums in arithmetic expressions.

This commit is contained in:
Rasmus Munk Larsen
2021-06-10 17:17:39 -07:00
parent 001a57519a
commit f64b2954c7
14 changed files with 28 additions and 28 deletions

View File

@@ -24,7 +24,7 @@ struct unary_evaluator<CwiseUnaryOp<UnaryOp,ArgType>, IteratorBased>
class InnerIterator;
enum {
CoeffReadCost = evaluator<ArgType>::CoeffReadCost + functor_traits<UnaryOp>::Cost,
CoeffReadCost = int(evaluator<ArgType>::CoeffReadCost) + int(functor_traits<UnaryOp>::Cost),
Flags = XprType::Flags
};