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

2017-01-12 Thread redi at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=77528 Jonathan Wakely changed: What|Removed |Added Status|REOPENED|RESOLVED Resolution|---

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

2017-01-12 Thread redi at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=77528 --- Comment #11 from Jonathan Wakely --- Author: redi Date: Thu Jan 12 17:28:36 2017 New Revision: 244374 URL: https://gcc.gnu.org/viewcvs?rev=244374=gcc=rev Log: PR77528 partially revert r244278 and define default constructors PR

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

2017-01-10 Thread rs2740 at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=77528 --- Comment #10 from TC --- C'ing the relevant parts of my email to the lists here for the record: The new default member initializers use {}, and it's not too hard to find test cases where {} and value-initialization do different things,

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

2017-01-10 Thread redi at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=77528 Jonathan Wakely changed: What|Removed |Added Status|RESOLVED|REOPENED Resolution|FIXED

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

2017-01-10 Thread jerry.c.t at web dot de
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=77528 --- Comment #8 from jerryct --- (In reply to Jonathan Wakely from comment #5) > That introduces a different problem though. This won't compile with libc++: > > #include > struct D : std::deque { D(int) { } }; > template class std::stack

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

2017-01-10 Thread redi at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=77528 Jonathan Wakely changed: What|Removed |Added Status|NEW |RESOLVED Resolution|---

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

2017-01-10 Thread redi at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=77528 --- Comment #6 from Jonathan Wakely --- Author: redi Date: Tue Jan 10 17:30:20 2017 New Revision: 244278 URL: https://gcc.gnu.org/viewcvs?rev=244278=gcc=rev Log: PR77528 add default constructors for container adaptors PR

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

2017-01-10 Thread redi at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=77528 --- Comment #5 from Jonathan Wakely --- (In reply to jerryct from comment #4) > Thus a constructor like libcxx has: > _LIBCPP_INLINE_VISIBILITY > stack() > _NOEXCEPT_(is_nothrow_default_constructible::value) > : c() {} > > would solve

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

2016-12-30 Thread jerry.c.t at web dot de
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=77528 jerryct changed: What|Removed |Added CC||jerry.c.t at web dot de --- Comment #4 from

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

2016-09-12 Thread redi at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=77528 --- Comment #3 from Jonathan Wakely --- (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

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

2016-09-11 Thread rs2740 at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=77528 TC changed: What|Removed |Added CC||rs2740 at gmail dot com --- Comment #2 from TC

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

2016-09-08 Thread redi at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=77528 Jonathan Wakely changed: What|Removed |Added Status|UNCONFIRMED |NEW Last reconfirmed|