Common: Move NonCopyable to its own header

This commit is contained in:
Lioncash
2015-09-26 16:13:54 -04:00
parent bb927ad738
commit 1d42db2439
18 changed files with 39 additions and 16 deletions

View File

@ -0,0 +1,17 @@
// 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:
constexpr NonCopyable() = default;
~NonCopyable() = default;
private:
NonCopyable(NonCopyable&) = delete;
NonCopyable& operator=(NonCopyable&) = delete;
};