Skip to content
Snippets Groups Projects
Commit 7a4b7177 authored by Yuri Kunde Schlesner's avatar Yuri Kunde Schlesner
Browse files

Common: Use C++11 deleted functions for NonCopyable

parent 1fee769a
No related branches found
No related tags found
No related merge requests found
......@@ -14,15 +14,13 @@
#define STACKALIGN
// An inheritable class to disallow the copy constructor and operator= functions
class NonCopyable
{
class NonCopyable {
protected:
NonCopyable() {}
NonCopyable(const NonCopyable&&) {}
void operator=(const NonCopyable&&) {}
private:
NonCopyable(NonCopyable&);
NonCopyable& operator=(NonCopyable& other);
NonCopyable() = default;
~NonCopyable() = default;
NonCopyable(NonCopyable&) = delete;
NonCopyable& operator=(NonCopyable&) = delete;
};
#include "common/assert.h"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment