Skip to content

Commit

Permalink
fix: vector constructors should not require DefaultInsertable `valu…
Browse files Browse the repository at this point in the history
…e_type`
  • Loading branch information
tearfur authored and alandefreitas committed Jun 27, 2024
1 parent c63eef6 commit 259edec
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion include/small/vector.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -436,7 +436,9 @@ namespace small {

/// \brief Construct small vector with a given allocator
constexpr explicit vector(const allocator_type &alloc)
: vector(0, alloc) {}
: enable_allocator_type() {
enable_allocator_type::set_allocator(alloc);
}

/// \brief Construct small array with size n
/// Any of the n values should be constructed with new (p) value_type();
Expand Down

0 comments on commit 259edec

Please sign in to comment.