From 4dde90a8685a38eb1dc58ca044301d322c1c7f16 Mon Sep 17 00:00:00 2001 From: "marcin.mirski" Date: Thu, 20 Feb 2025 11:42:41 -0800 Subject: [PATCH] Change deprecated std::bind1st usage to std::bind --- wiimote/src/stat_vector_3d.cpp | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/wiimote/src/stat_vector_3d.cpp b/wiimote/src/stat_vector_3d.cpp index cfe8dee8..b7f9ece3 100644 --- a/wiimote/src/stat_vector_3d.cpp +++ b/wiimote/src/stat_vector_3d.cpp @@ -88,7 +88,8 @@ TVectorDouble StatVector3d::getMeanScaled(double scale) TVectorDouble mean = getMeanRaw(); std::transform( - mean.begin(), mean.end(), mean.begin(), std::bind1st(std::multiplies(), scale)); + mean.begin(), mean.end(), mean.begin(), + std::bind(std::multiplies(), scale, std::placeholders::_1)); return mean; } @@ -136,7 +137,7 @@ TVectorDouble StatVector3d::getVarianceScaled(double scale) std::transform( variance.begin(), variance.end(), variance.begin(), - std::bind1st(std::multiplies(), scale)); + std::bind(std::multiplies(), scale, std::placeholders::_1)); return variance; } @@ -159,7 +160,8 @@ TVectorDouble StatVector3d::getStandardDeviationScaled(double scale) TVectorDouble stddev = getStandardDeviationRaw(); std::transform( - stddev.begin(), stddev.end(), stddev.begin(), std::bind1st(std::multiplies(), scale)); + stddev.begin(), stddev.end(), stddev.begin(), + std::bind(std::multiplies(), scale, std::placeholders::_1)); return stddev; }