We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
select_on_container_copy_construction
1 parent 9409f4a commit 1b9e32eCopy full SHA for 1b9e32e
source/include/gch/small_vector.hpp
@@ -2868,7 +2868,8 @@ namespace gch
2868
if (other.allocator_ref () == allocator_ref ())
2869
return copy_assign_default (other);
2870
2871
- alloc_interface new_alloc (other);
+ // Avoid using `select_on_container_copy_construction` here.
2872
+ alloc_interface new_alloc (other.allocator_ref ());
2873
if (InlineCapacity < other.get_size ())
2874
{
2875
const size_ty new_capacity = other.get_size ();
@@ -2924,7 +2925,7 @@ namespace gch
2924
2925
set_size (other.get_size ());
2926
}
2927
- alloc_interface::operator= (std::move(new_alloc));
2928
+ alloc_interface::operator= (std::move (new_alloc));
2929
return *this;
2930
2931
0 commit comments