Title
random_shuffle and shuffle should have consistent signatures
Status
dup
Section
[alg.random.shuffle]
Submitter
BSI

Created on 2010-08-25.00:00:00 last changed 166 months ago

Messages

Date: 2011-03-05.21:44:45

Proposed resolution:

[DEPENDS ON WHETHER RVALUE OR LVALUE REFERENCE IS THE PREFERRED FORM]

Date: 2010-10-24.03:04:13

Addresses GB-119

The functions random_shuffle and shuffle both take arguments providing a source of randomness, but one take its argument by rvalue reference, and the other requires an lvalue reference. The technical merits of which form of argument passing should be settled for this specific case, and a single preferred form used consistently.

History
Date User Action Args
2011-03-05 21:44:45adminsetmessages: + msg5613
2010-10-24 03:04:13adminsetmessages: + msg4927
2010-08-25 00:00:00admincreate