property: add the necessary include file for std::function
[pulseview.git] / pv / prop / property.h
index 0b4bc7b0ed9223bca1f20706688924812d41a51f..b3aa1a690b00c3e29e74140317169bc5b2ac195e 100644 (file)
@@ -23,8 +23,7 @@
 
 #include <glib.h>
 
-#include <boost/function.hpp>
-
+#include <functional>
 #include <QString>
 #include <QWidget>
 
@@ -38,8 +37,8 @@ class Property : public QObject
        Q_OBJECT;
 
 public:
-       typedef boost::function<GVariant* ()> Getter;
-       typedef boost::function<void (GVariant*)> Setter;
+       typedef std::function<GVariant* ()> Getter;
+       typedef std::function<void (GVariant*)> Setter;
 
 protected:
        Property(QString name, Getter getter, Setter setter);