Title
Signature of generate_canonical not useful
Status
cd1
Section
[rand.util.canonical]
Submitter
Daniel Krügler

Created on 2007-03-08.00:00:00 last changed 172 months ago

Messages

Date: 2010-10-21.18:28:33

Proposed resolution:

Adopt the proposed resolution in N2423.

Date: 2007-03-08.00:00:00

In [rand.synopsis] we have the declaration

template<class RealType, class UniformRandomNumberGenerator,
  size_t bits>
result_type generate_canonical(UniformRandomNumberGenerator& g);

Besides the "result_type" issue (already recognized by Bo Persson at Sun, 11 Feb 2007 05:26:47 GMT in this group) it's clear, that the template parameter order is not reasonably choosen: Obviously one always needs to specify all three parameters, although usually only two are required, namely the result type RealType and the wanted bits, because UniformRandomNumberGenerator can usually be deduced.

See N2391 and N2423 for some further discussion.

History
Date User Action Args
2010-10-21 18:28:33adminsetmessages: + msg3345
2007-03-08 00:00:00admincreate