Add missing type_identity to hub's constructor

This commit is contained in:
Ion Gaztañaga
2026-08-13 03:03:46 +02:00
parent 713e20a173
commit 2b032d0c7d
+2 -1
View File
@@ -1078,7 +1078,8 @@ public:
//! <b>Requires</b>: T is CopyInsertable into the hub.
//!
//! <b>Complexity</b>: Linear in il.size().
hub(std::initializer_list<T> il, const allocator_type& al_ = allocator_type()):
hub(std::initializer_list<T> il
, const BOOST_CONTAINER_DOC1ST(allocator_type, dtl::type_identity_t<allocator_type>) &al_ = allocator_type()):
hub(il.begin(), il.end(), al_) {}
//! <b>Effects</b>: Destroys all elements and deallocates all blocks.