This page is a snapshot from the LWG issues list, see theLibrary Active Issues List for more information and the meaning ofCD1 status.
piecewise_constant_distribution is undefined for a range with just one endpointSection: 29.5.9.6.2[rand.dist.samp.pconst]Status:CD1Submitter: P.J. PlaugerOpened: 2008-02-09Last modified: 2016-01-28
Priority:Not Prioritized
View all otherissues in [rand.dist.samp.pconst].
View all issues withCD1 status.
Discussion:
piecewise_constant_distribution is undefined for a range with just oneendpoint. (Probably should be the same as an empty range.)
Proposed resolution:
Change 29.5.9.6.2[rand.dist.samp.pconst] paragraph 3b:
b) If
firstB == lastBor the sequencewhas the length zero,