This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug libstdc++/55169] std::discrete_distribution::operator(generator&) makes unnecessary copy of parameter vector
- From: "chri.snell at gmail dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Thu, 01 Nov 2012 19:48:43 +0000
- Subject: [Bug libstdc++/55169] std::discrete_distribution::operator(generator&) makes unnecessary copy of parameter vector
- Auto-submitted: auto-generated
- References: <bug-55169-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55169
--- Comment #2 from Chris Nell <chri.snell at gmail dot com> 2012-11-01 19:48:43 UTC ---
After a bit more poking, it appears that param() returns a copy (not a const
reference) for all distributions, not just discrete_distribution. As such, it
might we worth looking into whether other implementations of
operator(generator&) suffer from the same bug.