Try preventing static casts when calling hash_value.

[SVN r63716]
This commit is contained in:
Daniel James
2010-07-06 23:32:37 +00:00
parent 425de7d1dd
commit 2553a5fbdc
4 changed files with 38 additions and 0 deletions
+16
View File
@@ -0,0 +1,16 @@
#include <boost/functional/hash.hpp>
namespace test
{
struct base {};
std::size_t hash_value(base const&) { return 0; }
struct converts { operator base() const { return base(); } };
}
int main() {
boost::hash<test::converts> hash;
test::converts x;
hash(x);
}