use std::forward correctly
@@ -25,10 +25,10 @@ public:
~GlobalFilter() {}
- template<typename ... T>
- static std::shared_ptr<GlobalFilter> create(T&& ... params) {
+ template<typename ... Params>
+ static std::shared_ptr<GlobalFilter> create(Params&& ... params) {
ctor_tag x;
- return std::make_shared<GlobalFilter>(x, std::forward(params)...);
+ return std::make_shared<GlobalFilter>(x, std::forward<Params>(params)...);
}
const search::BitVector *filter() const { return bit_vector.get(); }
