Build fixes for Boost >= 1.73
[dcpomatic.git] / src / wx / content_widget.h
index de7ebedc5022b321e0d92679c5a22a41b1d46e4f..52a5e5851a9b09ecaef7bcea415b1c7b66007be5 100644 (file)
@@ -108,7 +108,11 @@ public:
                update_from_model ();
 
                for (typename List::iterator i = _content.begin(); i != _content.end(); ++i) {
+#if BOOST_VERSION >= 106100
+                       _connections.push_back ((*i)->Change.connect (boost::bind (&ContentWidget::model_changed, this, boost::placeholders::_1, boost::placeholders::_3)));
+#else
                        _connections.push_back ((*i)->Change.connect (boost::bind (&ContentWidget::model_changed, this, _1, _3)));
+#endif
                }
        }