Re: [PATCH] libstdc++: Constrain std::vector default constructor [PR113841]

2024-03-22 Thread Jonathan Wakely
Pushed to trunk. Backport to gcc-13 needed too, as the changes to use concepts for std::pair constructors are on that branch. On Tue, 19 Mar 2024 at 15:59, Jonathan Wakely wrote: > > This fixes the problem in the PR, which is revealed by the new > concept-based constraints on std::pair

[PATCH] libstdc++: Constrain std::vector default constructor [PR113841]

2024-03-19 Thread Jonathan Wakely
This fixes the problem in the PR, which is revealed by the new concept-based constraints on std::pair constructors in C++20 mode. That makes this a C++20 regression, as the PR's example compiles with C++17. We need something similar for std::basic_string too, which I'll do later. Any comments?