From 41657bc50eb1be43a19bb8ad0c3f532420ce232d Mon Sep 17 00:00:00 2001 From: Howard Hinnant Date: Sat, 15 Oct 2016 21:15:24 -0400 Subject: [PATCH] Embellish issue 2. --- d0355r1.html | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/d0355r1.html b/d0355r1.html index a3ad7c5..642544a 100644 --- a/d0355r1.html +++ b/d0355r1.html @@ -606,9 +606,9 @@ a way that it is trivial to remove this functionality.
  • Currently this library passes time_zones around with -const time_zone*. Each time_zone is a non-copyable singleton -in the application (much like a type_info). Passing them around by pointers -allows syntax such as: +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();
    @@ -633,6 +633,13 @@ the following work no matter what with this syntax:
     
     cout << make_zoned(current_zone(), system_clock::now()) << '\n';
     
    +

    +We simply need to decide if the default style guide for passing time_zones +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. +