You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
from the result of calling allocator_traits<A>::select_on_container_copy_construction() on
the corresponding allocator in *this.
That function takes an argument, so displaying it with an empty set of parentheses is misleading.
Saying calling it "on the corresponding allocator" doesn't clearly say that the corresponding allocator is passed as the argument to the function.
I suggest something like:
from the result of calling allocator_traits<A>::select_on_container_copy_construction with
the corresponding allocator in *this as the function argument.
The text was updated successfully, but these errors were encountered:
Also it talks about initializing each allocator A (suggesting A is a placeholder for an object) then uses A as a template type argument in allocator_traits<A>. Either it's a type (and so we need to initialize an object of that type) or it's an object (in which case we want allocator_traits<decltype(A)>).
jensmaurer
changed the title
Imprecise wording for scoped_allocator_adaptor::select_on_container_copy_construction
[allocator.adaptor.members] Imprecise wording for scoped_allocator_adaptor::select_on_container_copy_construction
Dec 16, 2016
[allocator.adaptor.members]/17 says:
That function takes an argument, so displaying it with an empty set of parentheses is misleading.
Saying calling it "on the corresponding allocator" doesn't clearly say that the corresponding allocator is passed as the argument to the function.
I suggest something like:
The text was updated successfully, but these errors were encountered: