Closed jbcoe closed 7 months ago
As far as I can see the changes look good. Seems to be quite a bit of noise created by trivial formatting changes (line wrapping text), it would be useful in future to separate these out from actual changes to text.
Agreed. This PR got too big too fast. Thanks for review.
We already mention allocators in: Class template polymorphic general [polymorphic.general]
_In every specialization
polymorphic<T, Allocator>
, if the typeallocator_traits<Allocator>::value_type
is not the same type asT
, the program is ill-formed. Every object of typepolymorphic<T, Allocator>
uses an object of typeAllocator
to allocate and free storage for the owned object as needed. The owned object is constructed using the functionallocator_traits<allocator_type>::rebind_traits<U>::construct
and destroyed using the functionallocator_traits<allocator_type>::rebind_traits<U>::destroy
, whereU
is eitherallocator_type::value_type
or an internal type used by the polymorphic value._There is, perhaps, no need to mention allocators again for individual constructors.