Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
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 Go to previous message
jjacksonRIAB is currently offline  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.


 
Read Message
Read Message
Read Message
Previous Topic: Serialize long as uint64 on some platforms
Next Topic: Way to decode websocket frames?
Goto Forum:
  


Current Time: Sat Aug 02 00:33:40 CEST 2025

Total time taken to generate the page: 0.00666 seconds