changeset 103:3f961faf25b1 default tip

replaced boost::math::round() by Orthanc::Math::iround()
author Sebastien Jodogne <s.jodogne@gmail.com>
date Tue, 27 Jan 2026 17:22:34 +0100
parents fb88ccb7be58
children
files Framework/TransferToolbox.cpp
diffstat 1 files changed, 3 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/Framework/TransferToolbox.cpp	Fri Jan 02 13:24:37 2026 +0100
+++ b/Framework/TransferToolbox.cpp	Tue Jan 27 17:22:34 2026 +0100
@@ -23,10 +23,10 @@
 
 #include "../Resources/Orthanc/Plugins/OrthancPluginCppWrapper.h"
 
+#include <CompatibilityMath.h>
 #include <Logging.h>
 #include <OrthancException.h>
 
-#include <boost/math/special_functions/round.hpp>
 #include <boost/thread/thread.hpp>
 
 
@@ -35,14 +35,14 @@
   unsigned int ConvertToMegabytes(uint64_t value)
   {
     return static_cast<unsigned int>
-      (boost::math::round(static_cast<float>(value) / static_cast<float>(MB)));
+      (Orthanc::Math::iround(static_cast<float>(value) / static_cast<float>(MB)));
   }
 
 
   unsigned int ConvertToKilobytes(uint64_t value)
   {
     return static_cast<unsigned int>
-      (boost::math::round(static_cast<float>(value) / static_cast<float>(KB)));
+      (Orthanc::Math::iround(static_cast<float>(value) / static_cast<float>(KB)));
   }