Re: [PATCH] libstdc++: Fix the default constructor of ranges::__detail::__box

2020-10-30 Thread Jonathan Wakely via Gcc-patches
On 29/10/20 19:48 -0400, Patrick Palka via Libstdc++ wrote: On Thu, 29 Oct 2020, Patrick Palka wrote: The class template semiregular-box of [range.semi.wrap] is specified to value-initialize the underlying object whenever its type is default- initializable. Our primary template for __detail::_

Re: [PATCH] libstdc++: Fix the default constructor of ranges::__detail::__box

2020-10-29 Thread Patrick Palka via Gcc-patches
On Thu, 29 Oct 2020, Patrick Palka wrote: > The class template semiregular-box of [range.semi.wrap] is specified > to value-initialize the underlying object whenever its type is default- > initializable. Our primary template for __detail::__box respects this > requirement, but the recently added

[PATCH] libstdc++: Fix the default constructor of ranges::__detail::__box

2020-10-29 Thread Patrick Palka via Gcc-patches
The class template semiregular-box of [range.semi.wrap] is specified to value-initialize the underlying object whenever its type is default- initializable. Our primary template for __detail::__box respects this requirement, but the recently added partial specialization (for types which are already