mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-29 04:08:55 +00:00
Common: Move NonCopyable to its own header
This commit is contained in:
parent
bb927ad738
commit
1d42db2439
18 changed files with 39 additions and 16 deletions
17
Source/Core/Common/NonCopyable.h
Normal file
17
Source/Core/Common/NonCopyable.h
Normal 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;
|
||||
};
|
Loading…
Add table
Add a link
Reference in a new issue