Home » U++ Library support » U++ Core » v14609  GetHashValue compilation error  
	
		
		
			| Re: v14609  GetHashValue compilation error [message #58776 is a reply to message #54372] | 
			Sun, 28 August 2022 10:01   | 
		 
		
			
				
				
				
					
						  
						jjacksonRIAB
						 Messages: 227 Registered: June 2011 
						
					 | 
					Experienced Member  | 
					 | 
		 
		 
	 | 
 
	
		The problem appears to be in Topt.h where there is no specialization for float (line 476): 
 
//template<> inline hash_t GetHashValue(const float& a)          { double memhash(&a, sizeof(a)); }
 
 
is commented out but it clearly has an error in it. It should be 
 
template<> inline hash_t GetHashValue(const float& a)          { return memhash(&a, sizeof(a)); }
 
 
After making that change it appears to work. 
 
 
		
		
		
 |  
	| 
		
	 | 
 
 
 |  
  
 
Goto Forum:
 
 Current Time: Tue Nov 04 08:58:37 CET 2025 
 Total time taken to generate the page: 0.04459 seconds 
 |