且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

Apple Clang和numeric_limits< unsigned __int128> :: max()为0?

更新时间:2023-11-11 22:25:40

notstd :: numeric_limits< T>:std :: numeric_limits< T>

如果 T 带有错误,超载 static具有正确行为的max()(以及其他任何东西)。

Specialize if for T which have a bug, overloading static max() (and whatever else) with the right behaviour.

使用 notstd :: numeric_limits $ c 添加中的$ c>。

Use notstd::numeric_limits in Add.

或使用较新的编译器和/或标准库。

Or use a newer compiler and/or standard library.