[tz] Getting current tzdb version in use

Howard Hinnant howard.hinnant at gmail.com
Thu Jul 19 17:12:20 UTC 2018


On Jul 19, 2018, at 12:58 PM, Paul Eggert <eggert at cs.ucla.edu> wrote:
> 
> On 07/19/2018 08:39 AM, Howard Hinnant wrote:
>> If every version == “unknown”, this strategy will spectacularly fail, and subsequently the std::lib vendor may as well.
> 
> Presumably get_tzdb().version should have some way of failing if there is no version info, and it should fail if tzdata.zi says '# version unknown'. Although this wouldn't solve the other version problems we've seen on this thread, it should solve this one.

The prototype implementation throws an exception, though that detail is not currently specified in the C++20 spec.  I’ll give it more thought.

Howard

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: Message signed with OpenPGP
URL: <http://mm.icann.org/pipermail/tz/attachments/20180719/524bd491/signature.asc>


More information about the tz mailing list