boost_1_53_0: no matching function for call to ‘hash_value
Hi ,
I am using boost_1_53_0 for my applications build. The boost_1_53_0 is throwing the following error message.
boost_1_53_0/boost/functional/hash/extensions.hpp:269:34: error: no matching function for call to ‘hash_value(const Rubedo::Utils::Hashing::HashedString<16>&)’ return hash_value(val); ^
boost_1_53_0/boost/functional/hash/hash.hpp:187:57: error: no type named ‘type’ in ‘struct boost::hash_detail::basic_numbers
’
The following code build fine with boost_1_49_0, but have error with boost_1_53_0 on linux. Do you have fixes for these ? Please let me know.
Thanks
On 20 June 2013 21:55, Shailja Kumari
I am using boost_1_53_0 for my applications build. The boost_1_53_0 is throwing the following error message.
boost_1_53_0/boost/functional/hash/extensions.hpp:269:34: error: no matching function for call to ‘hash_value(const Rubedo::Utils::Hashing::HashedString<16>&)’ return hash_value(val); ^
boost_1_53_0/boost/functional/hash/hash.hpp:187:57: error: no type named ‘type’ in ‘struct boost::hash_detail::basic_numbers
’
The following code build fine with boost_1_49_0, but have error with boost_1_53_0 on linux. Do you have fixes for these ? Please let me know.
It's hard to say without seeing the code, but is 'Rubedo::Utils::Hashing::HashedString' implicitly convertible to an int, or something similar? We recently changed it to stop using implicit conversions as it was a frequent cause of bugs. The fix is to declare a friend function called 'hash_value' which takes the class as an argument and returns a hash value. Guessing by the name of your class, it probably has an appropriate member value?
participants (2)
-
Daniel James
-
Shailja Kumari