This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug libstdc++/77528] std::queue default constructor unnecessarily creates temporary of underlying Container


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=77528

--- Comment #3 from Jonathan Wakely <redi at gcc dot gnu.org> ---
(In reply to TC from comment #2)
> This makes the default constructor implicit,

Yes, that was intentional :-)

> though that's probably how it
> should be anyway.

Yes, we missed the container adaptors when fixing https://wg21.link/lwg2193

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]