Title
Ratio values should be constexpr
Status
resolved
Section
[ratio.ratio]
Submitter
Alisdair Meredith

Created on 2009-05-25.00:00:00 last changed 170 months ago

Messages

Date: 2010-10-21.18:28:33

Proposed resolution:

[ratio.ratio]

namespace std {
  template <intmax_t N, intmax_t D = 1>
  class ratio {
  public:
    static constexpr intmax_t num;
    static constexpr intmax_t den;
  };
}
Date: 2010-11-20.00:05:46

[ 2009-10 Santa Cruz: ]

NAD EditorialResolved. Solved by N2994.

Date: 2009-05-25.00:00:00

The values num and den in the ratio template should be declared constexpr.

History
Date User Action Args
2010-11-19 19:04:45adminsetstatus: nad editorial -> resolved
2010-10-21 18:28:33adminsetmessages: + msg826
2010-10-21 18:28:33adminsetmessages: + msg825
2009-05-25 00:00:00admincreate