diff --git a/plugins/channelrx/noisefigure/noisefigure.cpp b/plugins/channelrx/noisefigure/noisefigure.cpp
index a6a08d413..646fbf065 100644
--- a/plugins/channelrx/noisefigure/noisefigure.cpp
+++ b/plugins/channelrx/noisefigure/noisefigure.cpp
@@ -16,6 +16,7 @@
// along with this program. If not, see . //
///////////////////////////////////////////////////////////////////////////////////
+#include
#include
#include "noisefigure.h"
@@ -41,6 +42,12 @@
#include "channel/channelwebapiutils.h"
#include "maincore.h"
+#if BOOST_VERSION < 107700
+using namespace boost::math;
+#else
+using namespace boost::math::interpolators;
+#endif
+
MESSAGE_CLASS_DEFINITION(NoiseFigure::MsgConfigureNoiseFigure, Message)
MESSAGE_CLASS_DEFINITION(NoiseFigure::MsgPowerMeasurement, Message)
MESSAGE_CLASS_DEFINITION(NoiseFigure::MsgNFMeasurement, Message)
@@ -180,7 +187,7 @@ double NoiseFigure::calcENR(double frequency)
else
{
int order = size - 1;
- boost::math::barycentric_rational interpolant(std::move(x), std::move(y), order);
+ barycentric_rational interpolant(std::move(x), std::move(y), order);
enr = interpolant(frequency);
}
}
diff --git a/plugins/channelrx/noisefigure/noisefigureenrdialog.cpp b/plugins/channelrx/noisefigure/noisefigureenrdialog.cpp
index 1200fe989..e51afe232 100644
--- a/plugins/channelrx/noisefigure/noisefigureenrdialog.cpp
+++ b/plugins/channelrx/noisefigure/noisefigureenrdialog.cpp
@@ -17,11 +17,20 @@
#include
+#include
+
+#include
#include
#include "noisefigureenrdialog.h"
#include "util/interpolation.h"
+#if BOOST_VERSION < 107700
+using namespace boost::math;
+#else
+using namespace boost::math::interpolators;
+#endif
+
NoiseFigureENRDialog::NoiseFigureENRDialog(NoiseFigureSettings *settings, QWidget* parent) :
QDialog(parent),
m_settings(settings),
@@ -153,7 +162,7 @@ void NoiseFigureENRDialog::plotChart()
y[i] = points[i][1];
}
int order = size - 1;
- boost::math::barycentric_rational interpolant(std::move(x), std::move(y), order);
+ barycentric_rational interpolant(std::move(x), std::move(y), order);
x.resize(size);
y.resize(size);