Opened 20 years ago

Closed 18 years ago

#141 closed Bugs (Wont Fix)

mersenne_twister::seed takes iterator by reference

Reported by: rminsk Owned by: jmaurer
Milestone: Component: random
Version: None Severity:
Keywords: Cc:

Description

The member template 
boost::random::merseene_twister:seed looks likes

template<class It>
void seed(It &first, It last)

Should it take a reference to first?

Change History (1)

comment:1 by jmaurer, 18 years ago

Status: assignedclosed
Logged In: YES 
user_id=53943

Yes.

The idea is that compound generators such as xor_combine<>
can recursively seed their constituents.  And that mean that
any individual generator must indicate how much "seed space"
it has consumed, so that the compound generator can pass the
rest to the next constituent generator.

The library working group of the C++ committee didn't like
the idea of passing iterator "first" by reference, so the
official TR interface is now back to the seed(Generator&)
still present in the sources.

Jens Maurer
Note: See TracTickets for help on using tickets.