This question has also been submitted to Usenet, where it is more appropriate, but this is a larger and more reliable forum.
std::allocator::construct
is defined to forward its argument parameter
pack to object construction using parentheses, a.k.a. direct-initialization.
If it used braces, a.k.a. uniform initialization, we could initialize
aggregate data types from functions such as std::make_shared
and
container::emplace
. Also, it would be acceptable to put the contents
of an initializer list into the argument list of such a function,
solving the problem of initializer_list
type deduction under
forwarding.
Was this alternative considered and rejected? Is it too late to switch in a future standard? It seems this would be a breaking change, but not a particularly heinous one.