[libcxx-commits] [libcxx] [libc++] LWG3260: year_month* arithmetic rejects durations convertible to years (PR #196384)

Hristo Hristov via libcxx-commits libcxx-commits at lists.llvm.org
Sat May 9 06:15:51 PDT 2026


================
@@ -49,6 +52,26 @@ constexpr bool test() {
     assert((ym == year_month{year{2020}, month{4}}));
   }
 
+  { // Ambiguity test, defaults to year arithmetic
----------------
Zingam wrote:

I'm not sure myself as I haven't written an ambiguity test ever but wouldn't a `compile.pass.cpp` test be more appropriate? @frederick-vs-ja 

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


More information about the libcxx-commits mailing list