mirror of
				https://github.com/Telecominfraproject/wlan-cloud-lib-poco.git
				synced 2025-11-04 04:28:10 +00:00 
			
		
		
		
	Fixed constness detection of const char[] arrays
This commit is contained in:
		@@ -109,6 +109,17 @@ struct IsConst<const T>
 | 
			
		||||
};
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
template <typename T, int i>
 | 
			
		||||
struct IsConst<const T[i]>
 | 
			
		||||
	/// Specialization for const char arrays
 | 
			
		||||
{
 | 
			
		||||
	enum 
 | 
			
		||||
	{
 | 
			
		||||
		VALUE = 1
 | 
			
		||||
	};
 | 
			
		||||
};
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
template <typename T>
 | 
			
		||||
struct TypeWrapper
 | 
			
		||||
	/// Use the type wrapper if you want to dedecouple constness and references from template types
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user