Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Test for deleted construction-copyable / copyable code #1528

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions modules/core/include/visp3/core/vpMoment.h
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,11 @@ class VISP_EXPORT vpMoment
// }
//#endif

#if (VISP_CXX_STANDARD >= VISP_CXX_STANDARD_11)
vpMoment(const vpMoment &) = delete; // non construction-copyable
vpMoment &operator=(const vpMoment &) = delete; // non copyable
#endif

public:
vpMoment();

Expand Down
5 changes: 5 additions & 0 deletions modules/core/include/visp3/core/vpMomentCommon.h
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,11 @@ class VISP_EXPORT vpMomentCommon : public vpMomentDatabase
// }
//#endif

#if (VISP_CXX_STANDARD >= VISP_CXX_STANDARD_11)
vpMomentCommon(const vpMomentCommon &) = delete; // non construction-copyable
vpMomentCommon &operator=(const vpMomentCommon &) = delete; // non copyable
#endif

public:
vpMomentCommon(double dstSurface, const std::vector<double> &ref, double refAlpha, double dstZ = 1.0,
bool flg_sxsyfromnormalized = false);
Expand Down
4 changes: 4 additions & 0 deletions modules/core/include/visp3/core/vpMutex.h
Original file line number Diff line number Diff line change
Expand Up @@ -182,6 +182,10 @@ class VP_DEPRECATED vpMutex
// }
//#endif

#if (VISP_CXX_STANDARD >= VISP_CXX_STANDARD_11)
vpScopedLock &operator=(const vpScopedLock &) = delete; // non copyable
#endif

public:
//! Constructor that locks the mutex.
vpScopedLock(vpMutex &mutex) : _mutex(mutex) { _mutex.lock(); }
Expand Down
5 changes: 5 additions & 0 deletions modules/sensor/include/visp3/sensor/vpV4l2Grabber.h
Original file line number Diff line number Diff line change
Expand Up @@ -211,6 +211,11 @@ class VISP_EXPORT vpV4l2Grabber : public vpFrameGrabber
// }
//#endif

#if (VISP_CXX_STANDARD >= VISP_CXX_STANDARD_11)
vpV4l2Grabber(const vpV4l2Grabber &) = delete; // non construction-copyable
vpV4l2Grabber &operator=(const vpV4l2Grabber &) = delete; // non copyable
#endif

public:
vpV4l2Grabber();
VP_EXPLICIT vpV4l2Grabber(bool verbose);
Expand Down
5 changes: 5 additions & 0 deletions modules/tracker/mbt/include/visp3/mbt/vpMbtDistanceCircle.h
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down
5 changes: 5 additions & 0 deletions modules/tracker/mbt/include/visp3/mbt/vpMbtDistanceCylinder.h
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down
5 changes: 5 additions & 0 deletions modules/tracker/mbt/include/visp3/mbt/vpMbtDistanceLine.h
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,11 @@ class VISP_EXPORT vpTemplateTrackerMI : public vpTemplateTracker
// }
//#endif

#if (VISP_CXX_STANDARD >= VISP_CXX_STANDARD_11)
vpTemplateTrackerMI(const vpTemplateTrackerMI &) = delete; // non construction-copyable
vpTemplateTrackerMI &operator=(const vpTemplateTrackerMI &) = delete; // non copyable
#endif

public:
//! Default constructor.
vpTemplateTrackerMI()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,11 @@ class VISP_EXPORT vpTemplateTrackerMIESM : public vpTemplateTrackerMI
// }
//#endif

#if (VISP_CXX_STANDARD >= VISP_CXX_STANDARD_11)
vpTemplateTrackerMIESM(const vpTemplateTrackerMIESM &) = delete; // non construction-copyable
vpTemplateTrackerMIESM &operator=(const vpTemplateTrackerMIESM &) = delete; // non copyable
#endif

public:
//! Default constructor.
vpTemplateTrackerMIESM()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -188,6 +188,11 @@ class VISP_EXPORT vpFeatureMoment : public vpBasicFeature
// }
//#endif

#if (VISP_CXX_STANDARD >= VISP_CXX_STANDARD_11)
vpFeatureMoment(const vpFeatureMoment &) = delete; // non construction-copyable
vpFeatureMoment &operator=(const vpFeatureMoment &) = delete; // non copyable
#endif

public:
/*!
* Initializes the feature with information about the database of moment
Expand Down
5 changes: 5 additions & 0 deletions modules/vs/include/visp3/vs/vpServo.h
Original file line number Diff line number Diff line change
Expand Up @@ -273,6 +273,11 @@ class VISP_EXPORT vpServo
// }
//#endif

#if (VISP_CXX_STANDARD >= VISP_CXX_STANDARD_11)
vpServo(const vpServo &) = delete; // non construction-copyable
vpServo &operator=(const vpServo &) = delete; // non copyable
#endif

public:
/*!
* Default constructor that initializes the following settings:
Expand Down
Loading