mirror of
https://github.com/boostorg/functional.git
synced 2025-08-02 14:04:27 +02:00
Sun C++ didn't like the function call, so just try inlining the implementation for now.
[SVN r40036]
This commit is contained in:
@@ -474,7 +474,10 @@ namespace boost
|
|||||||
#if !BOOST_WORKAROUND(__SUNPRO_CC, <= 0x590)
|
#if !BOOST_WORKAROUND(__SUNPRO_CC, <= 0x590)
|
||||||
return boost::hash_value(v);
|
return boost::hash_value(v);
|
||||||
#else
|
#else
|
||||||
return boost::hash_value<T*>(v);
|
std::size_t x = static_cast<std::size_t>(
|
||||||
|
reinterpret_cast<std::ptrdiff_t>(v));
|
||||||
|
|
||||||
|
return x + (x >> 3);
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
@@ -496,7 +499,10 @@ namespace boost
|
|||||||
#if !BOOST_WORKAROUND(__SUNPRO_CC, <= 590)
|
#if !BOOST_WORKAROUND(__SUNPRO_CC, <= 590)
|
||||||
return boost::hash_value(val);
|
return boost::hash_value(val);
|
||||||
#else
|
#else
|
||||||
return boost::hash_value<T>(val);
|
std::size_t x = static_cast<std::size_t>(
|
||||||
|
reinterpret_cast<std::ptrdiff_t>(val));
|
||||||
|
|
||||||
|
return x + (x >> 3);
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
Reference in New Issue
Block a user