2015-09-26 20:13:54 +00:00
|
|
|
// Copyright 2015 Dolphin Emulator Project
|
|
|
|
// Licensed under GPLv2+
|
|
|
|
// Refer to the license.txt file included.
|
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
|
|
|
// An inheritable class to disallow the copy constructor and operator= functions
|
|
|
|
class NonCopyable
|
|
|
|
{
|
|
|
|
protected:
|
2016-06-24 08:43:46 +00:00
|
|
|
constexpr NonCopyable() = default;
|
|
|
|
~NonCopyable() = default;
|
2015-09-26 20:13:54 +00:00
|
|
|
|
2016-06-24 08:43:46 +00:00
|
|
|
NonCopyable(const NonCopyable&) = delete;
|
|
|
|
NonCopyable& operator=(const NonCopyable&) = delete;
|
2017-08-01 18:50:11 +00:00
|
|
|
|
|
|
|
NonCopyable(NonCopyable&&) = default;
|
|
|
|
NonCopyable& operator=(NonCopyable&&) = default;
|
2015-09-26 20:13:54 +00:00
|
|
|
};
|