Skip to content

[ratio.ratio] Order of ratio members #67

Closed
@sdutoit

Description

@sdutoit

Via cxxeditor@:

In 20.10.3 Class template ratio [ratio.ratio] we declare:

namespace std {
 template <intmax_t N, intmax_t D = 1>
 class ratio {
   public:
     typedef ratio<num, den> type;
     static constexpr intmax_t num;
     static constexpr intmax_t den;
 };
}

It would be clearer as:

class ratio {
  public:
    static constexpr intmax_t num;
    static constexpr intmax_t den;
    typedef ratio<num, den> type;
};

Metadata

Metadata

Assignees

No one assigned

    Labels

    tinyAn issue with a small change; with "cwg" label: can be applied editorially after CWG consent.

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions