diff options
| author | Carl Hetherington <cth@carlh.net> | 2021-07-16 01:08:17 +0200 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2021-07-16 01:08:17 +0200 |
| commit | 9b85acc342e0cbfc6a9f9533bb7067978bd1294e (patch) | |
| tree | a9c3835bd777292bbc39c83b95c52657d5c2169a /src/wx/dcpomatic_spin_ctrl.cc | |
| parent | e7ee69e61c1bd968e85fc8d7b3641c0fc4282813 (diff) | |
Fix build with older boost.
Diffstat (limited to 'src/wx/dcpomatic_spin_ctrl.cc')
| -rw-r--r-- | src/wx/dcpomatic_spin_ctrl.cc | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/wx/dcpomatic_spin_ctrl.cc b/src/wx/dcpomatic_spin_ctrl.cc index 05f13a7d9..a05070410 100644 --- a/src/wx/dcpomatic_spin_ctrl.cc +++ b/src/wx/dcpomatic_spin_ctrl.cc @@ -21,8 +21,13 @@ #include "dcpomatic_spin_ctrl.h" #include <boost/bind/bind.hpp> +#include <boost/version.hpp> #include <wx/wx.h> +#if BOOST_VERSION >= 106100 +using namespace boost::placeholders; +#endif + SpinCtrl::SpinCtrl (wxWindow* parent, int width) : wxSpinCtrl (parent, wxID_ANY, wxEmptyString, wxDefaultPosition, wxSize(width, -1), wxSP_ARROW_KEYS | wxTE_PROCESS_ENTER) @@ -30,6 +35,6 @@ SpinCtrl::SpinCtrl (wxWindow* parent, int width) auto enter = [](wxCommandEvent& ev) { dynamic_cast<wxWindow*>(ev.GetEventObject())->Navigate(); }; - Bind (wxEVT_TEXT_ENTER, boost::bind<void>(enter, boost::placeholders::_1)); + Bind (wxEVT_TEXT_ENTER, boost::bind<void>(enter, _1)); } |
