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

Use =delete to disable special members #2779

Merged
Merged
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
4 changes: 2 additions & 2 deletions gpu/kinfu_large_scale/tools/record_maps_rgb.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -126,8 +126,8 @@ class MapsBuffer
}

private:
MapsBuffer (const MapsBuffer&); // Disabled copy constructor
MapsBuffer& operator =(const MapsBuffer&); // Disabled assignment operator
MapsBuffer (const MapsBuffer&) = delete; // Disabled copy constructor
MapsBuffer& operator =(const MapsBuffer&) = delete; // Disabled assignment operator

boost::mutex bmutex_;
boost::condition_variable buff_empty_;
Expand Down
24 changes: 12 additions & 12 deletions gpu/people/src/cuda/nvidia/NCV.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -522,7 +522,7 @@ NCV_EXPORTS NCVStatus memSegCopyHelper2D(void *dst, Ncv32u dstPitch, NCVMemoryTy
template <class T>
class NCVVector
{
NCVVector(const NCVVector &);
NCVVector(const NCVVector &) = delete;

public:

Expand Down Expand Up @@ -585,9 +585,9 @@ class NCVVector
template <class T>
class NCVVectorAlloc : public NCVVector<T>
{
NCVVectorAlloc();
NCVVectorAlloc(const NCVVectorAlloc &);
NCVVectorAlloc& operator=(const NCVVectorAlloc<T>&);
NCVVectorAlloc() = delete;
NCVVectorAlloc(const NCVVectorAlloc &) = delete;
NCVVectorAlloc& operator=(const NCVVectorAlloc<T>&) = delete;

public:

Expand Down Expand Up @@ -645,8 +645,8 @@ class NCVVectorAlloc : public NCVVector<T>
template <class T>
class NCVVectorReuse : public NCVVector<T>
{
NCVVectorReuse();
NCVVectorReuse(const NCVVectorReuse &);
NCVVectorReuse() = delete;
NCVVectorReuse(const NCVVectorReuse &) = delete;

public:

Expand Down Expand Up @@ -694,7 +694,7 @@ class NCVVectorReuse : public NCVVector<T>
template <class T>
class NCVMatrix
{
NCVMatrix(const NCVMatrix &);
NCVMatrix(const NCVMatrix &) = delete;

public:

Expand Down Expand Up @@ -800,9 +800,9 @@ class NCVMatrix
template <class T>
class NCVMatrixAlloc : public NCVMatrix<T>
{
NCVMatrixAlloc();
NCVMatrixAlloc(const NCVMatrixAlloc &);
NCVMatrixAlloc& operator=(const NCVMatrixAlloc &);
NCVMatrixAlloc() = delete;
NCVMatrixAlloc(const NCVMatrixAlloc &) = delete;
NCVMatrixAlloc& operator=(const NCVMatrixAlloc &) = delete;
public:

NCVMatrixAlloc(INCVMemAllocator &allocator, Ncv32u width, Ncv32u height, Ncv32u pitch=0)
Expand Down Expand Up @@ -875,8 +875,8 @@ class NCVMatrixAlloc : public NCVMatrix<T>
template <class T>
class NCVMatrixReuse : public NCVMatrix<T>
{
NCVMatrixReuse();
NCVMatrixReuse(const NCVMatrixReuse &);
NCVMatrixReuse() = delete;
NCVMatrixReuse(const NCVMatrixReuse &) = delete;

public:

Expand Down
4 changes: 2 additions & 2 deletions io/tools/openni_pcd_recorder.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -142,8 +142,8 @@ class PCDBuffer
}

private:
PCDBuffer (const PCDBuffer&); // Disabled copy constructor
PCDBuffer& operator = (const PCDBuffer&); // Disabled assignment operator
PCDBuffer (const PCDBuffer&) = delete; // Disabled copy constructor
PCDBuffer& operator = (const PCDBuffer&) = delete; // Disabled assignment operator

boost::mutex bmutex_;
boost::condition_variable buff_empty_;
Expand Down
4 changes: 2 additions & 2 deletions outofcore/include/pcl/outofcore/visualization/scene.h
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@ class Scene
static Scene *instance_;

Scene ();
Scene (const Scene& op);
Scene (const Scene& op) = delete;
Scene&
operator= (const Scene& op);
operator= (const Scene& op) = delete;

public:

Expand Down
4 changes: 2 additions & 2 deletions visualization/tools/openni_image.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -246,8 +246,8 @@ class Buffer
}

private:
Buffer (const Buffer&); // Disabled copy constructor
Buffer& operator =(const Buffer&); // Disabled assignment operator
Buffer (const Buffer&) = delete; // Disabled copy constructor
Buffer& operator =(const Buffer&) = delete; // Disabled assignment operator

boost::mutex bmutex_;
boost::condition_variable buff_empty_;
Expand Down