https://bugs.documentfoundation.org/show_bug.cgi?id=147021
Stephan Bergmann <[email protected]> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |[email protected] --- Comment #1 from Stephan Bergmann <[email protected]> --- (In reply to Hossein from comment #0) > One pitfall would be comparing the result with a signed value. Then, either > you have to cast the result to a signed value, or use an unsigned value for > the other side of the comparison. If there's need, we can make available C++20 > template<class T, ptrdiff_t N> constexpr ptrdiff_t ssize(const T (&array)[N]) > noexcept; as o3tl::ssize for the time being. (Also, if it is known that the other side of the comparison, even though of signed type, must be non-negative, like e.g. a call to OUString::getLength, then o3tl::make_unsigned from o3tl/safeint.hxx is a good choice.) -- You are receiving this mail because: You are the assignee for the bug.
