summaryrefslogtreecommitdiff
path: root/Source/Core/Common/NonCopyable.h
blob: 9fc1456a4edb08f1c512e96e5f41404e708ef837 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
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;
};