Skip to content
Snippets Groups Projects
Commit 9f11930f authored by Adrien Béraud's avatar Adrien Béraud
Browse files

fix compilation on latest clang

parent 013b1dfe
No related branches found
No related tags found
No related merge requests found
...@@ -133,7 +133,9 @@ struct Value ...@@ -133,7 +133,9 @@ struct Value
class Filter : public std::function<bool(const Value&)> { class Filter : public std::function<bool(const Value&)> {
public: public:
Filter() {} Filter() {}
template<typename Functor> Filter(Functor&& f) : std::function<bool(const Value&)>::function(std::forward<Functor>(f)) {}
template<typename Functor>
Filter(Functor f) : std::function<bool(const Value&)>::function(f) {}
Filter chain(Filter&& f2) { Filter chain(Filter&& f2) {
auto f1 = *this; auto f1 = *this;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment