From bb0a117b4f3cfa232a212f23daa182cd8f020812 Mon Sep 17 00:00:00 2001 From: Fabien Spindler Date: Fri, 10 Jan 2025 13:54:06 +0100 Subject: [PATCH] =?UTF-8?q?Fix=20build=20issue=20reported=20by=20Fedora=20?= =?UTF-8?q?25=20ci=20when=20moments-combine-matrices=20is=20enabled=20modu?= =?UTF-8?q?les/visual=5Ffeatures/src/visual-feature/vpFeatureMomentGravity?= =?UTF-8?q?CenterNormalized.cpp:73:105:=20error:=20use=20of=20deleted=20fu?= =?UTF-8?q?nction=20=E2=80=98vpFeatureMomentAreaNormalized::vpFeatureMomen?= =?UTF-8?q?tAreaNormalized(const=20vpFeatureMomentAreaNormalized&)?= =?UTF-8?q?=E2=80=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../include/visp3/visual_features/vpFeatureMoment.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/modules/visual_features/include/visp3/visual_features/vpFeatureMoment.h b/modules/visual_features/include/visp3/visual_features/vpFeatureMoment.h index eb20946215..4effcb0c84 100644 --- a/modules/visual_features/include/visp3/visual_features/vpFeatureMoment.h +++ b/modules/visual_features/include/visp3/visual_features/vpFeatureMoment.h @@ -187,11 +187,12 @@ class VISP_EXPORT vpFeatureMoment : public vpBasicFeature // implemented!"); return *this; // } //#endif - +#if !defined(VISP_MOMENTS_COMBINE_MATRICES) #if (VISP_CXX_STANDARD >= VISP_CXX_STANDARD_11) vpFeatureMoment(const vpFeatureMoment &) = delete; // non construction-copyable vpFeatureMoment &operator=(const vpFeatureMoment &) = delete; // non copyable #endif +#endif public: /*!