[cfe-commits] [Patch][Review] constexpr-ification of <limits> and random number generators

Jonathan Sauer jonathan.sauer at gmx.de
Sun Apr 1 00:33:16 PDT 2012


Hello,

the attached patch constexpr-ifies <limits> as specified in FDIS as well as removes the
workarounds in libc++'s random number generators due to missing constexpr (the workarounds
don't work when using a non-standard PRNG). The corresponding tests are modified as well.

Please review and, if ok, commit.


With many thanks in advance,
Jonathan

P.S: I noticed that class uniform_int_distribution is defined in <algorithm> instead of
<random>, even though according to 26.5.2 it should be in <random>. Is there a special
reason for this move?
-------------- next part --------------
A non-text attachment was scrubbed...
Name: limits_random.diff
Type: application/octet-stream
Size: 58701 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20120401/0d771986/attachment.obj>
-------------- next part --------------




More information about the cfe-commits mailing list