forked from boostorg/unordered
Fix asan unitialized warning when default-initialized int is copied as a return type
This commit is contained in:
@ -263,7 +263,9 @@ template <typename T> struct allocator3
|
|||||||
allocator3<T> select_on_container_copy_construction() const
|
allocator3<T> select_on_container_copy_construction() const
|
||||||
{
|
{
|
||||||
++selected;
|
++selected;
|
||||||
return allocator3<T>();
|
allocator3<T> a;
|
||||||
|
a.x = 0;
|
||||||
|
return a;
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user