File: 0008-spectrogramplot-use-bind-as-bind1st-is-deprecated.patch

package info (click to toggle)
inspectrum 0.2.3-3
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 1,312 kB
  • sloc: cpp: 2,675; makefile: 3
file content (25 lines) | stat: -rw-r--r-- 865 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
From ecef5af60db6c490abae9f1bbe6b10c259c291a3 Mon Sep 17 00:00:00 2001
From: Mike Walters <mike@flomp.net>
Date: Mon, 22 Feb 2021 21:10:35 +0000
Subject: [PATCH 08/31] spectrogramplot: use bind as bind1st is deprecated

---
 spectrogramplot.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/spectrogramplot.cpp b/spectrogramplot.cpp
index 458e7ac..8fe9cc8 100644
--- a/spectrogramplot.cpp
+++ b/spectrogramplot.cpp
@@ -314,7 +314,7 @@ std::vector<float> SpectrogramPlot::getTunerTaps()
     auto taps = std::vector<float>(len);
     liquid_firdes_kaiser(len, cutoff, atten, 0.0f, taps.data());
     std::transform(taps.begin(), taps.end(), taps.begin(),
-                   std::bind1st(std::multiplies<float>(), gain));
+                   std::bind(std::multiplies<float>(), std::placeholders::_1, gain));
     return taps;
 }
 
-- 
2.35.1