r183795 - in /branches/gcc-4_6-branch/libstdc++...
paolo@gcc.gnu.org
paolo@gcc.gnu.org
Wed Feb 1 11:10:00 GMT 2012
Author: paolo
Date: Wed Feb 1 11:10:30 2012
New Revision: 183795
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=183795
Log:
2012-02-01 Paolo Carlini <paolo.carlini@oracle.com>
PR libstdc++/51795
* include/bits/random.h (linear_congruential_generator): Add
static_assert preventing instantiation for values of 'a' and 'm'
currently handled incorrectly but _Mod::__calc.
* include/bits/random.tcc (seed_seq::generate): Avoid unsafe
uses of _Mod::__calc.
Modified:
branches/gcc-4_6-branch/libstdc++-v3/ChangeLog
branches/gcc-4_6-branch/libstdc++-v3/include/bits/random.h
branches/gcc-4_6-branch/libstdc++-v3/include/bits/random.tcc
More information about the Libstdc++-cvs
mailing list