Make evaluators non-copyable. This guarantee that evaluators storing temporaries do not introduce unwanted copy overhead.

This commit is contained in:
Gael Guennebaud 2015-09-02 21:39:49 +02:00
parent 92b9f0e102
commit f8976fdbe0

View File

@ -96,7 +96,7 @@ struct evaluator<const T>
// ---------- base class for all evaluators ---------- // ---------- base class for all evaluators ----------
template<typename ExpressionType> template<typename ExpressionType>
struct evaluator_base struct evaluator_base : public noncopyable
{ {
// TODO Check whether nestedType is really needed: // TODO Check whether nestedType is really needed:
// As long as evaluator are non-copyable, there is no reason to make it different. // As long as evaluator are non-copyable, there is no reason to make it different.