mirror of
				https://github.com/OpenMW/openmw.git
				synced 2025-10-29 10:26:38 +00:00 
			
		
		
		
	Use the same function to load and save to have single place with field order definition. Use concepts for overload over different types.
		
			
				
	
	
		
			13 lines
		
	
	
	
		
			283 B
		
	
	
	
		
			C++
		
	
	
	
	
	
			
		
		
	
	
			13 lines
		
	
	
	
		
			283 B
		
	
	
	
		
			C++
		
	
	
	
	
	
| #ifndef OPENMW_COMPONENTS_MISC_CONCEPTS_H
 | |
| #define OPENMW_COMPONENTS_MISC_CONCEPTS_H
 | |
| 
 | |
| #include <concepts>
 | |
| #include <type_traits>
 | |
| 
 | |
| namespace Misc
 | |
| {
 | |
|     template <class T, class U>
 | |
|     concept SameAsWithoutCvref = std::same_as<std::remove_cvref_t<T>, std::remove_cvref_t<U>>;
 | |
| }
 | |
| 
 | |
| #endif
 |