]> sigrok.org Git - pulseview.git/blobdiff - pv/prop/property.h
property: add the necessary include file for std::function
[pulseview.git] / pv / prop / property.h
index 22e211b1936905146d5d80118a2756dc5859b7da..b3aa1a690b00c3e29e74140317169bc5b2ac195e 100644 (file)
 #ifndef PULSEVIEW_PV_PROP_PROPERTY_H
 #define PULSEVIEW_PV_PROP_PROPERTY_H
 
-#include <glib-2.0/glib.h>
-
-#include <boost/function.hpp>
+#include <glib.h>
 
+#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);