From 444fa15aa7af394fd51da66f7170f7c5b78f2617 Mon Sep 17 00:00:00 2001
From: Howard Hinnant
-The implementation includes full documentation, and an
-active
-community of users with positive field experience. The implementation has been ported
-to Windows, Linux, Android, macOS and iOS.
+The implementation includes full documentation, and an active community of users with
+positive field experience. The implementation has been ported to Windows, Linux, Android,
+macOS and iOS.
@@ -652,80 +651,6 @@ please see:
http://howardhinnant.github.io/date/iso_week.html
-
-This is a collection of issues that could be changed one way or the other with this
-proposal.
-
-Can the database be updated by the program while the program is running?
-
-This is probably the most important issue to be decided. This decision, one way or
-the other, leads (or doesn't) to many other decisions. If the database can be updated
-while the program is running:
-
-Not allowing the database to be dynamically updated is by far the simpler solution.
-This proposal shows you what dynamic updating could look like. It is far easier to
-remove this feature from a proposal than to add it. This proposal is designed in such
-a way that it is trivial to remove this functionality.
-
-Currently this library passes
-But source functions such as
-Either solution is workable. And whichever we choose, the client can get the other
-with
-We simply need to decide if the default style guide for passing
Howard E. Hinnant
-2017-08-12
+2017-08-13
Extending
@@ -216,10 +216,9 @@ Everything proposed herein has been fully implemented here:
<chrono>
to Calendars and Time ZonesIssues
-
-
-
-
-
-time_zone
s around with
-const time_zone*
. Each time_zone
is a non-copyable
-const
singleton in the application (much like a
-type_info
). Passing them around by pointers allows syntax such as:
-
-
-auto tz = current_zone();
-cout << tz->name() << '\n';
-
current_zone
and locate_zone
-never return nullptr
. So it has been suggested that the library
-traffic in const time_zone&
instead. This would change the above
-code snippet to:
-
-
-auto& tz = current_zone();
-cout << tz.name() << '\n';
-
*current_zone()
or ¤t_zone()
. And whichever
-we choose, we will make the library API self-consistent so that things like
-the following work no matter what with this syntax:
-
-
-cout << zoned_time{current_zone(), system_clock::now()} << '\n';
-
time_zone
s
-around is const time_zone*
or const time_zone&
. And yes,
-it is ok for a client to have a const time_zone*
which equals
-nullptr
. And no, the library never provides a const time_zone*
-which is equal to nullptr
.
-Proposed Wording
Table of Contents for Proposed Wording
@@ -9117,7 +9042,7 @@ struct tzdb
class tzdb_list
{
- std::atomic
tzdb_list::const_iterator
is a non-mutating iterator which meets the
-forward iterator requirements.
+tzdb_list::const_iterator
is a constant iterator which meets the
+forward iterator requirements and has a value type of tzdb
.
const tzdb& tzdb_list::front() const noexcept;