changeset 797:fb668ef280af default tip

replaced boost::math::iround() by Orthanc::Math::iround()
author Sebastien Jodogne <s.jodogne@gmail.com>
date Tue, 27 Jan 2026 16:57:20 +0100
parents 0f0c9103fea8
children
files MySQL/Plugins/MySQLStorageArea.cpp
diffstat 1 files changed, 4 insertions(+), 5 deletions(-) [+]
line wrap: on
line diff
--- a/MySQL/Plugins/MySQLStorageArea.cpp	Mon Jan 26 12:37:00 2026 +0100
+++ b/MySQL/Plugins/MySQLStorageArea.cpp	Tue Jan 27 16:57:20 2026 +0100
@@ -28,11 +28,10 @@
 #include "../../Framework/MySQL/MySQLTransaction.h"
 #include "MySQLDefinitions.h"
 
-#include <Compatibility.h>  // For std::unique_ptr<>
+#include <Compatibility.h>      // For std::unique_ptr<>
+#include <CompatibilityMath.h>  // For Orthanc::Math::iround()
 #include <Logging.h>
 
-#include <boost/math/special_functions/round.hpp>
-
 
 namespace OrthancDatabases
 {
@@ -47,8 +46,8 @@
       int64_t size;
       if (db.LookupGlobalIntegerVariable(size, "max_allowed_packet"))
       {
-        int mb = boost::math::iround(static_cast<double>(size) /
-                                     static_cast<double>(1024 * 1024));
+        int mb = Orthanc::Math::iround(static_cast<double>(size) /
+                                       static_cast<double>(1024 * 1024));
         LOG(WARNING) << "Your MySQL server cannot "
                      << "store DICOM files larger than " << mb << "MB";
         LOG(WARNING) << "  => Consider increasing \"max_allowed_packet\" "