aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthias P. Braendli <matthias.braendli@mpb.li>2015-08-13 14:38:37 +0200
committerMatthias P. Braendli <matthias.braendli@mpb.li>2015-08-13 14:38:37 +0200
commit0f6904cb8c786fdcfd50423ecf373b29b58840f2 (patch)
treec445250a855d1ca51a202f4c581533da8e5a7c03
parent32522207c97fbb1290c7c9511ec4dd1b5edb2b07 (diff)
downloaddabmux-0f6904cb8c786fdcfd50423ecf373b29b58840f2.tar.gz
dabmux-0f6904cb8c786fdcfd50423ecf373b29b58840f2.tar.bz2
dabmux-0f6904cb8c786fdcfd50423ecf373b29b58840f2.zip
Add boost check for experimental feature in ManagementServer
-rw-r--r--src/ManagementServer.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/ManagementServer.cpp b/src/ManagementServer.cpp
index 9a22776..303a720 100644
--- a/src/ManagementServer.cpp
+++ b/src/ManagementServer.cpp
@@ -36,6 +36,7 @@
#include <sstream>
#include <ctime>
#include <boost/thread.hpp>
+#include <boost/version.hpp>
#include "ManagementServer.h"
#include "Log.h"
@@ -230,6 +231,7 @@ bool ManagementServer::handle_setptree(
etiLog.level(info) << "Received ptree " << new_ptree;
+#if (BOOST_VERSION / 100000 == 1) && (BOOST_VERSION / 100 % 1000 >= 58)
boost::unique_lock<boost::mutex> lock(m_configmutex);
m_pt.clear();
@@ -241,6 +243,9 @@ bool ManagementServer::handle_setptree(
answer << "OK";
return true;
+#else
+# warning "Boost version too old, ptree loading through ManagementServer disabled"
+#endif
}
else {
etiLog.level(error) <<