Lines 349-355
Link Here
|
349 |
using boost::hash_value; |
349 |
using boost::hash_value; |
350 |
using boost::hash_combine; |
350 |
using boost::hash_combine; |
351 |
|
351 |
|
352 |
size_t hash = hash_value(val.type_); |
352 |
/* |
|
|
353 |
* Boost 1.51.0 seems not longer accept an enumerate value in its hash |
354 |
* function so cast it to a type it does like. |
355 |
*/ |
356 |
size_t hash = hash_value(static_cast<unsigned>(val.type_)); |
353 |
if (val.type_ == locator::FILE || val.type_ == locator::SUB_FILE) { |
357 |
if (val.type_ == locator::FILE || val.type_ == locator::SUB_FILE) { |
354 |
hash_combine(hash, val.filename_); |
358 |
hash_combine(hash, val.filename_); |
355 |
} |
359 |
} |