forked from dolphin-emu/dolphin
		
	
		
			
	
	
		
			18 lines
		
	
	
		
			399 B
		
	
	
	
		
			C
		
	
	
	
	
	
		
		
			
		
	
	
			18 lines
		
	
	
		
			399 B
		
	
	
	
		
			C
		
	
	
	
	
	
| 
								 | 
							
								// 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;
							 | 
						||
| 
								 | 
							
								};
							 |