Skip to content

Conversation

@feverzsj
Copy link
Contributor

@feverzsj feverzsj commented Feb 25, 2024

@Naios

uses-allocator construction enables propagating to nested object:

std::vector<fu2::function<void()>, std::scoped_allocator_adaptor<Alloc>> vec;
vec.emplace_back([](){}); // calls fu2::function([](){}, Alloc());

https://godbolt.org/z/x3TaE5cEM

uses-allocator construction enables propagating to nested object: std::vector<fu2::function<void()>, std::scoped_allocator_adaptor<Alloc>> vec; vec.emplace_back([](){}); // calls fu2::function([](){}, Alloc());
@feverzsj feverzsj requested a review from Naios as a code owner February 25, 2024 05:32
@Naios Naios merged commit 43fc0ca into Naios:master Feb 25, 2024
@Naios
Copy link
Owner

Naios commented Feb 25, 2024

Merged, thank you for your PR.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants