Skip to content

[time.syn] <chrono> synopsis uses time_zone before declaring it #5937

Open
@jwakely

Description

@jwakely
Member

We have:

// 29.11.2.3, time zone database access
const tzdb& get_tzdb();
tzdb_list& get_tzdb_list();
const time_zone* locate_zone(string_view tz_name);
const time_zone* current_zone();

before:

// 29.11.5, class time_zone
enum class choose {earliest, latest};
class time_zone;

I know we don't always require the spec to be compilable without changes, but this seems unnecessarily invalid. We could just move the 29.11.5 decls before the 29.11.2.3 ones.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Development

      No branches or pull requests

        Participants

        @jwakely

        Issue actions

          [time.syn] <chrono> synopsis uses time_zone before declaring it · Issue #5937 · cplusplus/draft