forked from boostorg/container_hash
Avoid conversion warning
This commit is contained in:
@@ -48,12 +48,12 @@ void test_variant_int()
|
|||||||
|
|
||||||
struct custom1 {
|
struct custom1 {
|
||||||
int value;
|
int value;
|
||||||
friend std::size_t hash_value(custom1 v) { return v.value; }
|
friend std::size_t hash_value(custom1 v) { return boost::hash_value(v.value); }
|
||||||
};
|
};
|
||||||
|
|
||||||
struct custom2 {
|
struct custom2 {
|
||||||
int value;
|
int value;
|
||||||
friend std::size_t hash_value(custom2 v) { return v.value; }
|
friend std::size_t hash_value(custom2 v) { return boost::hash_value(v.value); }
|
||||||
};
|
};
|
||||||
|
|
||||||
void test_variant_unique_types()
|
void test_variant_unique_types()
|
||||||
|
Reference in New Issue
Block a user