mirror of
				https://github.com/PabloMK7/citra.git
				synced 2025-10-31 05:40:04 +00:00 
			
		
		
		
	Common: Move NonCopyable to common_types.h
This commit is contained in:
		
							parent
							
								
									7a4b717772
								
							
						
					
					
						commit
						6ad71c216b
					
				
					 2 changed files with 10 additions and 10 deletions
				
			
		|  | @ -13,16 +13,6 @@ | |||
| 
 | ||||
| #define STACKALIGN | ||||
| 
 | ||||
| // An inheritable class to disallow the copy constructor and operator= functions
 | ||||
| class NonCopyable { | ||||
| protected: | ||||
|     NonCopyable() = default; | ||||
|     ~NonCopyable() = default; | ||||
| 
 | ||||
|     NonCopyable(NonCopyable&) = delete; | ||||
|     NonCopyable& operator=(NonCopyable&) = delete; | ||||
| }; | ||||
| 
 | ||||
| #include "common/assert.h" | ||||
| #include "common/logging/log.h" | ||||
| #include "common/common_types.h" | ||||
|  |  | |||
|  | @ -73,6 +73,16 @@ union t64 { | |||
|     u8  _u8[8];             ///< 8-bit unsigned char(s)
 | ||||
| }; | ||||
| 
 | ||||
| // An inheritable class to disallow the copy constructor and operator= functions
 | ||||
| class NonCopyable { | ||||
| protected: | ||||
|     NonCopyable() = default; | ||||
|     ~NonCopyable() = default; | ||||
| 
 | ||||
|     NonCopyable(NonCopyable&) = delete; | ||||
|     NonCopyable& operator=(NonCopyable&) = delete; | ||||
| }; | ||||
| 
 | ||||
| namespace Common { | ||||
| /// Rectangle data structure
 | ||||
| class Rect { | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue