Created on 2005-07-03.00:00:00 last changed 171 months ago
[ Berlin: Moved to NAD. N1932 makes this moot: the input_type template parameter has been eliminated. ]
Proposed resolution:
We recommend that there be a second template parameter to reflect the distribution's input_type, and that the existing first template parameter continue to reflect (solely) the result_type:
template< class IntType = int, UIntType = unsigned int > class uniform_int { public: // types typedef UIntType input_type; typedef IntType result_type;
In [tr.rand.dist.iunif] the uniform_int distribution currently has a single template parameter, IntType, used as the input_type and as the result_type of the distribution. We believe there is no reason to conflate these types in this way.
History | |||
---|---|---|---|
Date | User | Action | Args |
2010-10-21 18:28:33 | admin | set | messages: + msg2889 |
2010-10-21 18:28:33 | admin | set | messages: + msg2888 |
2005-07-03 00:00:00 | admin | create |