Skip to content
Snippets Groups Projects
Commit 76d84cb1 authored by Jakub Klinkovský's avatar Jakub Klinkovský
Browse files

clang-tidy: use '= delete' to prohibit calling of a special member function...

clang-tidy: use '= delete' to prohibit calling of a special member function [modernize-use-equals-delete]

See https://clang.llvm.org/extra/clang-tidy/checks/modernize-use-equals-delete.html
parent 1587db8e
No related branches found
No related tags found
1 merge request!122Linting setup + code updates
......@@ -51,12 +51,12 @@ public:
return (Type*) this->data;
}
private:
// stop the compiler generating methods of copy the object
CudaReductionBuffer( CudaReductionBuffer const& copy ); // Not Implemented
// copy-constructor and copy-assignment are meaningless for a singleton class
CudaReductionBuffer( CudaReductionBuffer const& copy ) = delete;
CudaReductionBuffer&
operator=( CudaReductionBuffer const& copy ); // Not Implemented
operator=( CudaReductionBuffer const& copy ) = delete;
private:
// private constructor of the singleton
inline CudaReductionBuffer( size_t size = 0 )
{
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment