[random] uniform_smallint

19 Aug
2011
19 Aug
'11
10:04 a.m.
boost::uniform_smallint<> distribution defaults its min and max constructor arguments to 0 and 9 respectively. While arbitrary, this may make sense for default constructed distributions. However, its easy to trigger an assert at runtime by calling its constructor with a single value (min > 9). Could this constructor be splitted into a default constructor and one that takes *both* min and max? I tried to check whether the standard mandates this, but couldn't find the FDIS online anymore (on a separate note, anyone knows where to find it?). Agustín K-ballo Bergé.- http://talesofcpp.blogspot.com
5047
Age (days ago)
5047
Last active (days ago)
0 comments
1 participants
participants (1)
-
Agustín K-ballo Bergé