1433. random_shuffle and shuffle should have consistent signatures

Section: 28.6.13 [alg.random.shuffle] Status: Dup Submitter: BSI Opened: 2010-08-25 Last modified: 2016-02-10

Priority: Not Prioritized

View all other issues in [alg.random.shuffle].

View all issues with Dup status.

Duplicate of: 1432

Discussion:

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.

Proposed resolution:

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