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: /*!