Title
Seed sequence's param function not useful for pure output iterator
Status
nad
Section
[rand.util.seedseq]
Submitter
Daniel Krügler

Created on 2010-02-07.00:00:00 last changed 172 months ago

Messages

Date: 2010-10-21.18:28:33

Proposed resolution:

  1. In Table 109 — Seed sequence requirements, expression "r.param(ob)" change the
    Return type entry:

    voidOutputIterator
    
  2. In [rand.util.seedseq], class seed_seq synopsis change

    template<class OutputIterator>
    voidOutputIterator param(OutputIterator dest) const;
    
Date: 2010-10-21.18:28:33

[ 2010 Pittsburgh: ]

No technical counterarguments, but it is simply too late in the process to make this change at this point.

Date: 2010-02-07.00:00:00

[ 2010-02-07 Howard adds: ]

At the time this issue was opened, the suggested changes are with respect to an anticipated draft which does not yet exist.

Date: 2010-02-07.00:00:00

The Seed sequence requirements ([rand.req.seedseq]) require the existence of a member function

template<typename OutputIterator>
void param(OutputIterator ob);

The fact that this function returns void instead of the value of ob after accepting the sequence data leads to the same problem as in issue 865 - In case of pure output iterators there is no way to serialize further data into that data sink.

History
Date User Action Args
2010-10-21 18:28:33adminsetmessages: + msg1561
2010-10-21 18:28:33adminsetmessages: + msg1560
2010-10-21 18:28:33adminsetmessages: + msg1559
2010-02-07 00:00:00admincreate