pass filter_type by r-value

This commit is contained in:
artemp 2013-11-28 15:13:22 +00:00
parent 62c06eabcc
commit a1c2bd0d86

View file

@ -35,8 +35,8 @@ class filter_featureset : public Featureset
typedef T filter_type; typedef T filter_type;
public: public:
filter_featureset(featureset_ptr const& fs, filter_type const& filter) filter_featureset(featureset_ptr const& fs, filter_type && filter)
: fs_(fs), filter_(filter) {} : fs_(fs), filter_(std::move(filter)) {}
feature_ptr next() feature_ptr next()
{ {