From f93d57ed4f7bdf200affc27765ef5bbf3ad86b5d Mon Sep 17 00:00:00 2001 From: Thomas Teisberg Date: Tue, 22 Oct 2024 10:31:33 -0700 Subject: [PATCH] Replace deprecated bind1st calls --- sdr/main.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/sdr/main.cpp b/sdr/main.cpp index ec63d16..76990b6 100644 --- a/sdr/main.cpp +++ b/sdr/main.cpp @@ -564,10 +564,10 @@ int UHD_SAFE_MAIN(int argc, char *argv[]) { if (phase_dither) { // Undo phase modulation and divide by num_presums in one go - transform(buff.begin(), buff.end(), buff.begin(), std::bind1st(std::multiplies>(), polar((float) 1.0/num_presums, inversion_phase))); + transform(buff.begin(), buff.end(), buff.begin(), std::bind(std::multiplies>(), polar((float) 1.0/num_presums, inversion_phase), std::placeholders::_1)); } else if (num_presums != 1) { // Only divide by num_presums - transform(buff.begin(), buff.end(), buff.begin(), std::bind1st(std::multiplies>(), 1.0/num_presums)); + transform(buff.begin(), buff.end(), buff.begin(), std::bind(std::multiplies>(), 1.0/num_presums, std::placeholders::_1)); } // Add to sample_sum @@ -712,7 +712,7 @@ void transmit_worker(tx_streamer::sptr& tx_stream, rx_streamer::sptr& rx_stream) { // Setup next chirp for modulation if (phase_dither) { - transform(chirp_unmodulated.begin(), chirp_unmodulated.end(), tx_buff.begin(), std::bind1st(std::multiplies>(), polar((float) 1.0, get_next_phase(true)))); + transform(chirp_unmodulated.begin(), chirp_unmodulated.end(), tx_buff.begin(), std::bind(std::multiplies>(), polar((float) 1.0, get_next_phase(true)), std::placeholders::_1)); } /*