[libcxx-commits] [libcxx] [libc++][chrono] Loads tzdata.zi in tzdb. (PR #74928)

Louis Dionne via libcxx-commits libcxx-commits at lists.llvm.org
Tue Feb 13 09:49:58 PST 2024


================
@@ -37,7 +37,13 @@ int main(int, const char**) {
   tzdb.version = "version";
   assert(tzdb.version == "version");
 
-  // TODO TZDB add the other data members
+  std::vector<std::chrono::time_zone>& zones = tzdb.zones;
+  zones.clear(); // is it a non-const member?
----------------
ldionne wrote:

IMO clearing is not necessary here and below, since we already store in a non-const ref.

https://github.com/llvm/llvm-project/pull/74928


More information about the libcxx-commits mailing list