Title
Missing initializer_list constructor for discrete_distribution
Status
resolved
Section
[rand.dist.samp.discrete]
Submitter
Daniel Krügler

Created on 2008-08-22.00:00:00 last changed 169 months ago

Messages

Date: 2011-04-28.21:34:33

Rationale:

Addressed by N2836 "Wording Tweaks for Concept-enabled Random Number Generation in C++0X".

Date: 2011-04-28.21:34:33

Proposed resolution:

  1. In [rand.dist.samp.discrete] p. 1, class discrete_distribution, just before the member declaration

    explicit discrete_distribution(const param_type& parm);
    

    insert

    discrete_distribution(initializer_list<double> wl);
    
  2. Between p.4 and p.5 of the same section insert a new paragraph as part of the new member description:

    discrete_distribution(initializer_list<double> wl);
    

    Effects: Same as discrete_distribution(wl.begin(), wl.end()).

Date: 2008-08-22.00:00:00

During the Sophia Antipolis meeting it was decided to separate from 793 a subrequest that adds initializer list support to discrete_distribution, specifically, the issue proposed to add a c'tor taking a initializer_list<double>.

History
Date User Action Args
2010-12-05 14:14:49adminsetstatus: nad editorial -> resolved
2010-10-21 18:28:33adminsetmessages: + msg4146
2010-10-21 18:28:33adminsetmessages: + msg4145
2008-08-22 00:00:00admincreate