[libcxx-commits] [libcxx] [libc++][chrono] Fixes year_month year wrapping. (PR #74938)
Louis Dionne via libcxx-commits
libcxx-commits at lists.llvm.org
Tue Dec 12 09:55:40 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});
----------------
ldionne wrote:
Ultra-nit: You could consider using `ymw` for year-month-weekday, since weekday is a single word. Just a thought.
https://github.com/llvm/llvm-project/pull/74938
More information about the libcxx-commits
mailing list