[PATCH] P0935R0 Eradicating unnecessarily explicit default constructors
Jonathan Wakely
jwakely@redhat.com
Fri Jun 15 16:13:00 GMT 2018
On 12/06/18 20:10 +0100, Jonathan Wakely wrote:
>Explicit default constructors are problematic, so this change removes
>them from <random> and <ext/random>, as per P0935R0.
>
> * include/bits/random.h (linear_congruential_engine)
> (mersenne_twister_engine, subtract_with_carry_engine, random_device)
I forgot to remove the default argument in the no-/dev/urandom version
of std::random_device. Fixed like so.
(Incidentally, it makes me very sad that our std::random_device is
5000 bytes even when it only needs to store a pointer, because we have
a union with mt19937 in it).
-------------- next part --------------
A non-text attachment was scrubbed...
Name: patch.txt
Type: text/x-patch
Size: 803 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/libstdc++/attachments/20180615/cf2cbcaf/attachment.bin>
More information about the Libstdc++
mailing list