Title
Missing requirement for variate_generator::operator()
Status
cd1
Section
[rand][tr.rand.var]
Submitter
Walter Brown

Created on 2005-07-03.00:00:00 last changed 164 months ago

Messages

Date: 2010-10-21.18:28:33

Proposed resolution:

We therefore recommend that we insert the following precondition before paragraph 11:

Precondition: distribution().operator()(e,value) is well-formed.

Date: 2010-10-21.18:28:33

[ Berlin: As a working group we voted in favor of N1932 which makes this moot: variate_generator has been eliminated. Then in full committee we voted to give this issue WP status (mistakenly). ]

Date: 2005-07-03.00:00:00

Paragraph 11 of [tr.rand.var] equires that the member template

template<class T> result_type operator() (T value);

return

distribution()(e, value)

However, not all distributions have an operator() with a corresponding signature.

History
Date User Action Args
2010-10-21 18:28:33adminsetmessages: + msg2883
2010-10-21 18:28:33adminsetmessages: + msg2882
2005-07-03 00:00:00admincreate