summaryrefslogtreecommitdiff
blob: 51f467400d86dcd39f2864c9573957dd5b3d269e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
--- branches/1.10/src/image.cpp	2012/11/03 15:08:51	55641
+++ branches/1.10/src/image.cpp	2012/11/03 15:22:21	55642
@@ -349,7 +349,11 @@
 	using boost::hash_value;
 	using boost::hash_combine;
 
-	size_t hash = hash_value(val.type_);
+	/*
+	 * Boost 1.51.0 seems not longer accept an enumerate value in its hash
+	 * function so cast it to a type it does like.
+	 */
+	size_t hash = hash_value(static_cast<unsigned>(val.type_));
 	if (val.type_ == locator::FILE || val.type_ == locator::SUB_FILE) {
 		hash_combine(hash, val.filename_);
 	}