Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
jwakely opened this issue Nov 6, 2022 · 0 comments
Open

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

jwakely opened this issue Nov 6, 2022 · 0 comments

Comments

@jwakely
Copy link
Member

jwakely commented Nov 6, 2022

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant