This page is a snapshot from the LWG issues list, see the Library Active Issues List for more information and the meaning of New status.

2154. What exactly does compile-time complexity imply?

Section: [rand.req.urng] Status: New Submitter: John Salmon Opened: 2012-04-26 Last modified: 2018-12-16

Priority: 4

View other active issues in [rand.req.urng].

View all other issues in [rand.req.urng].

View all issues with New status.


The expressions G::min() and G::max() in Table 116 in [rand.req.urng] are specified as having "compile-time" complexity.

It is not clear what, exactly, this requirement implies. If a URNG has a method:

static int min();

then is the method required to have a constexpr qualifier? I believe the standard would benefit from clarification of this point.

[2018-12-08; Tim Song comments]

This issue was resolved by P0898R3 and the subsequent editorial rewrite of this subclause.

Proposed resolution: