mirror of
				https://github.com/PabloMK7/citra.git
				synced 2025-10-31 05:40:04 +00:00 
			
		
		
		
	Common: Use C++11 deleted functions for NonCopyable
This commit is contained in:
		
							parent
							
								
									1fee769aa0
								
							
						
					
					
						commit
						7a4b717772
					
				
					 1 changed files with 6 additions and 8 deletions
				
			
		|  | @ -14,15 +14,13 @@ | |||
| #define STACKALIGN | ||||
| 
 | ||||
| // An inheritable class to disallow the copy constructor and operator= functions
 | ||||
| class NonCopyable | ||||
| { | ||||
| class NonCopyable { | ||||
| protected: | ||||
|     NonCopyable() {} | ||||
|     NonCopyable(const NonCopyable&&) {} | ||||
|     void operator=(const NonCopyable&&) {} | ||||
| private: | ||||
|     NonCopyable(NonCopyable&); | ||||
|     NonCopyable& operator=(NonCopyable& other); | ||||
|     NonCopyable() = default; | ||||
|     ~NonCopyable() = default; | ||||
| 
 | ||||
|     NonCopyable(NonCopyable&) = delete; | ||||
|     NonCopyable& operator=(NonCopyable&) = delete; | ||||
| }; | ||||
| 
 | ||||
| #include "common/assert.h" | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue