更新时间: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
Use notstd::numeric_limits
in Add
.
或使用较新的编译器和/或标准库。
Or use a newer compiler and/or standard library.