+ small optimization - pass and return const ref

This commit is contained in:
artemp 2013-05-07 16:12:57 +01:00
parent 4915bf138e
commit b086e2d20c

View file

@ -47,7 +47,7 @@ struct evaluate : boost::static_visitor<T1>
explicit evaluate(feature_type const& f)
: feature_(f) {}
value_type operator() (value_type x) const
value_type const& operator() (value_type const& x) const
{
return x;
}