pass filter_type by r-value
This commit is contained in:
parent
62c06eabcc
commit
a1c2bd0d86
1 changed files with 2 additions and 2 deletions
|
@ -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()
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue