Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 440742
Collapse All | Expand All

(-)branches/1.10/src/image.cpp (-1 / +5 lines)
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
	}

Return to bug 440742