[libcxx-commits] [libcxx] [libc++][chrono] Fixes year_month year wrapping. (PR #74938)

Mark de Wever via libcxx-commits libcxx-commits at lists.llvm.org
Tue Dec 12 10:14:01 PST 2023


================
@@ -31,25 +31,34 @@ constexpr bool test() {
 
   for (unsigned i = 0; i <= 10; ++i) {
     year y{1234};
-    year_month_weekday_last ymwd(y, month{i}, weekday_last{Tuesday});
+    year_month_weekday_last ymwdl(y, month{i}, weekday_last{Tuesday});
----------------
mordante wrote:

the wd is the typical naming in the Standard. There is also weekday indexed so 'w' would be too short. 

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


More information about the libcxx-commits mailing list