Boost logo

Boost Users :

Subject: Re: [Boost-users] boost_1_53_0: no matching function for call to ‘hash_value
From: Daniel James (daniel_at_[hidden])
Date: 2013-06-20 17:29:28


On 20 June 2013 21:55, Shailja Kumari <shalja.rudra_at_[hidden]> wrote:
>
>> 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<Rubedo::Utils::Hashing::HashedString<16>
>> >’
>>
>> 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?


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net