From c5a1d37c747ac4be8e780fe4e9a2a8f0bbb97f09 Mon Sep 17 00:00:00 2001 From: Fabien Spindler Date: Fri, 3 Jan 2025 14:15:06 +0100 Subject: [PATCH] Fix build around vpMath::equal usage adding VISP_NAMESPACE_ADDRESSING --- tutorial/particle-filter-curve-fitting/vpTutoCommonData.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tutorial/particle-filter-curve-fitting/vpTutoCommonData.h b/tutorial/particle-filter-curve-fitting/vpTutoCommonData.h index 4b414aec4b..53e5221342 100644 --- a/tutorial/particle-filter-curve-fitting/vpTutoCommonData.h +++ b/tutorial/particle-filter-curve-fitting/vpTutoCommonData.h @@ -267,7 +267,7 @@ typedef struct vpTutoCommonData #if defined(VISP_HAVE_DISPLAY) const int horOffset = 20, vertOffset = 25; std::string skeletonTitle("Skeletonized image ("); - skeletonTitle += (vpMath::equal(m_ratioSaltPepperNoise, 0.) ? "without" : std::to_string(static_cast(m_ratioSaltPepperNoise * 100.)) + "%"); + skeletonTitle += (VISP_NAMESPACE_ADDRESSING vpMath::equal(m_ratioSaltPepperNoise, 0.) ? "without" : std::to_string(static_cast(m_ratioSaltPepperNoise * 100.)) + "%"); skeletonTitle += " noise)"; m_displayOrig = VISP_NAMESPACE_ADDRESSING vpDisplayFactory::createDisplay(m_I_orig, horOffset, vertOffset, "Original image"); m_displaySegmented = VISP_NAMESPACE_ADDRESSING vpDisplayFactory::createDisplay(m_I_segmented, 2 * horOffset + m_I_orig.getWidth(), vertOffset, "Segmented image"); @@ -304,7 +304,7 @@ typedef struct vpTutoCommonData return true; } #endif -}vpTutoCommonData; +} vpTutoCommonData; } #endif #endif