2
¿El almacenamiento std :: chrono :: years es realmente de al menos 17 bits?
De cppreference std::chrono::years (since C++20) duration</*signed integer type of at least 17 bits*/, std::ratio<31556952>> Usando libc++, parece que el almacenamiento subrayado de std::chrono::yearsis shortestá firmado 16 bits . std::chrono::years( 30797 ) // yields 32767/01/01 std::chrono::years( 30797 ) + 365d // yields -32768/01/01 apparently UB ¿Hay un error tipográfico en cppreference …