diff --git a/rak/algorithm.h b/rak/algorithm.h index 7937d965..2604053f 100644 --- a/rak/algorithm.h +++ b/rak/algorithm.h @@ -38,7 +38,6 @@ #define RAK_ALGORITHM_H #include -#include #include namespace rak { @@ -115,7 +114,7 @@ advance_backward(_InputIter __first, _InputIter __last, _Distance __distance) { } template -struct compare_base : public std::function { +struct compare_base { bool operator () (const _Value& complete, const _Value& base) const { return !complete.compare(0, base.size(), base); } diff --git a/rak/regex.h b/rak/regex.h index 8d89b14c..c91b63d5 100644 --- a/rak/regex.h +++ b/rak/regex.h @@ -50,7 +50,7 @@ namespace rak { -class regex : public std::function { +class regex { public: regex() {} regex(const std::string& p) : m_pattern(p) {} diff --git a/src/core/view.cc b/src/core/view.cc index b6327d25..4f5310ee 100644 --- a/src/core/view.cc +++ b/src/core/view.cc @@ -16,7 +16,7 @@ namespace core { // Also add focus thingie here? -struct view_downloads_compare : std::function { +struct view_downloads_compare { view_downloads_compare(const torrent::Object& cmd) : m_command(cmd) {} @@ -50,7 +50,7 @@ struct view_downloads_compare : std::function { const torrent::Object& m_command; }; -struct view_downloads_filter : std::function { +struct view_downloads_filter { view_downloads_filter(const torrent::Object& cmd, const torrent::Object& cmd2) : m_command(cmd), m_command2(cmd2) {}