From 22aa4d75e23d5d81e200b5221d44ad288ccb3393 Mon Sep 17 00:00:00 2001 From: Souriya Trinh Date: Sun, 22 Dec 2024 02:24:24 +0100 Subject: [PATCH] Test to see if some code use these construction-copyable / copyable functions. --- modules/tracker/mbt/include/visp3/mbt/vpMbtDistanceCircle.h | 5 +++++ .../tracker/mbt/include/visp3/mbt/vpMbtDistanceCylinder.h | 5 +++++ .../tracker/mbt/include/visp3/mbt/vpMbtDistanceKltCylinder.h | 5 +++++ .../tracker/mbt/include/visp3/mbt/vpMbtDistanceKltPoints.h | 5 +++++ modules/tracker/mbt/include/visp3/mbt/vpMbtDistanceLine.h | 5 +++++ 5 files changed, 25 insertions(+) diff --git a/modules/tracker/mbt/include/visp3/mbt/vpMbtDistanceCircle.h b/modules/tracker/mbt/include/visp3/mbt/vpMbtDistanceCircle.h index 0a7a318131..7172008278 100644 --- a/modules/tracker/mbt/include/visp3/mbt/vpMbtDistanceCircle.h +++ b/modules/tracker/mbt/include/visp3/mbt/vpMbtDistanceCircle.h @@ -121,6 +121,11 @@ class VISP_EXPORT vpMbtDistanceCircle // } //#endif +#if (VISP_CXX_STANDARD >= VISP_CXX_STANDARD_11) + vpMbtDistanceCircle(const vpMbtDistanceCircle &) = delete; // non construction-copyable + vpMbtDistanceCircle &operator=(const vpMbtDistanceCircle &) = delete; // non copyable +#endif + public: vpMbtDistanceCircle(); virtual ~vpMbtDistanceCircle(); diff --git a/modules/tracker/mbt/include/visp3/mbt/vpMbtDistanceCylinder.h b/modules/tracker/mbt/include/visp3/mbt/vpMbtDistanceCylinder.h index 5d61fd88ad..495d3f5eb8 100644 --- a/modules/tracker/mbt/include/visp3/mbt/vpMbtDistanceCylinder.h +++ b/modules/tracker/mbt/include/visp3/mbt/vpMbtDistanceCylinder.h @@ -136,6 +136,11 @@ class VISP_EXPORT vpMbtDistanceCylinder // } //#endif +#if (VISP_CXX_STANDARD >= VISP_CXX_STANDARD_11) + vpMbtDistanceCylinder(const vpMbtDistanceCylinder &) = delete; // non construction-copyable + vpMbtDistanceCylinder &operator=(const vpMbtDistanceCylinder &) = delete; // non copyable +#endif + public: vpMbtDistanceCylinder(); virtual ~vpMbtDistanceCylinder(); diff --git a/modules/tracker/mbt/include/visp3/mbt/vpMbtDistanceKltCylinder.h b/modules/tracker/mbt/include/visp3/mbt/vpMbtDistanceKltCylinder.h index 983182afc6..be54314d5f 100644 --- a/modules/tracker/mbt/include/visp3/mbt/vpMbtDistanceKltCylinder.h +++ b/modules/tracker/mbt/include/visp3/mbt/vpMbtDistanceKltCylinder.h @@ -129,6 +129,11 @@ class VISP_EXPORT vpMbtDistanceKltCylinder // } //#endif +#if (VISP_CXX_STANDARD >= VISP_CXX_STANDARD_11) + vpMbtDistanceKltCylinder(const vpMbtDistanceKltCylinder &) = delete; // non construction-copyable + vpMbtDistanceKltCylinder &operator=(const vpMbtDistanceKltCylinder &) = delete; // non copyable +#endif + public: vpMbtDistanceKltCylinder(); virtual ~vpMbtDistanceKltCylinder(); diff --git a/modules/tracker/mbt/include/visp3/mbt/vpMbtDistanceKltPoints.h b/modules/tracker/mbt/include/visp3/mbt/vpMbtDistanceKltPoints.h index a64e753096..3d432e3ffe 100644 --- a/modules/tracker/mbt/include/visp3/mbt/vpMbtDistanceKltPoints.h +++ b/modules/tracker/mbt/include/visp3/mbt/vpMbtDistanceKltPoints.h @@ -130,6 +130,11 @@ class VISP_EXPORT vpMbtDistanceKltPoints // } //#endif +#if (VISP_CXX_STANDARD >= VISP_CXX_STANDARD_11) + vpMbtDistanceKltPoints(const vpMbtDistanceKltPoints &) = delete; // non construction-copyable + vpMbtDistanceKltPoints &operator=(const vpMbtDistanceKltPoints &) = delete; // non copyable +#endif + public: vpMbtDistanceKltPoints(); virtual ~vpMbtDistanceKltPoints(); diff --git a/modules/tracker/mbt/include/visp3/mbt/vpMbtDistanceLine.h b/modules/tracker/mbt/include/visp3/mbt/vpMbtDistanceLine.h index e8c385ef7e..c618a8f342 100644 --- a/modules/tracker/mbt/include/visp3/mbt/vpMbtDistanceLine.h +++ b/modules/tracker/mbt/include/visp3/mbt/vpMbtDistanceLine.h @@ -130,6 +130,11 @@ class VISP_EXPORT vpMbtDistanceLine // } //#endif +#if (VISP_CXX_STANDARD >= VISP_CXX_STANDARD_11) + vpMbtDistanceLine(const vpMbtDistanceLine &) = delete; // non construction-copyable + vpMbtDistanceLine &operator=(const vpMbtDistanceLine &) = delete; // non copyable +#endif + public: vpMbtDistanceLine(); virtual ~vpMbtDistanceLine();