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: Fri Aug 01 06:22:27 CEST 2025
Total time taken to generate the page: 0.06832 seconds
|