mirror of
https://github.com/boostorg/unordered.git
synced 2025-07-30 03:17:15 +02:00
Merge pull request #95 from cmazakas/unitialized-warning-fix
Fix asan unitialized warning
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